Try Django 1.9 - 25 of 38 - Setup Static Files - CSS & Javascript & Images in Django

preview_player
Показать описание
Try Django 1.9 - 25 of 38 - Setup Static Files - CSS & Javascript & Images in Django

Generally the topics will include:
- Django Project Setup
- Class Based Views (& some Function Based Views)
- Models, Model Forms, Forms, Form Validation
- Integrate Bootstrap front-end framework.
- Django Registration Redux for Authentication/Registration
- And More

We are Coding For Entrepreneurs [TeamCFE] and have built an entire library of content to help you master Django and other web technologies to launch real projects faster. Enroll today for as low as $20/month.

What Technology you'll learn in the Build a Django 1.8 Blog series:
-- Bootstrap (version 3.3): a powerful front-end framework used by thousands of sites around the world. Bootstrap makes it easier to have a responsive web application so it looks awesome on any mobile device and any desktop computer.

All of our tutorials have a simple goal in mind: get you building something real and quickly.
Рекомендации по теме
Комментарии
Автор

Thank you! After trying a bunch of responses on how to do this, it finally worked for me thanks to this video.

wudehaileyesus
Автор

nice best part about these tuts are they are also telling us about real life problems and scenario.Thanks a lot

prakhargurawa
Автор

Good job, and thank you for saving my day.

fredj
Автор

You are amazing you solved my issue I was having that has cost me 16 hours trying to decipher the tutorial on my own

Zoothar
Автор

Thank you so much, I was having a lot of problems trying to do that all by myself.

KanagawaMarcos
Автор

i watched your video on static files in try django 1.8 tutorial and i think you did a much better job of explaining how static files work in this video. The only thing i was missing was a short explanation on why exactly is it better to have static files on a different server.

Terminator
Автор

hi Justin ! in which course do you teach do deploy the app in production ?

hitmanism
Автор

thank you for saving me from a hole big problem

berrymind-oj
Автор

Great tutorial helped me lot. Thank you.

LearnProgramsCJ
Автор

very good ...its working ..appreciated

narendrachouhan
Автор

So during Realtime Running, from which path does the STATIC contents gets loaded from,
The 'STATICFILES_DIRS' or 'STATIC_ROOT' path ??
Confused between the existence of the 2 !!

ayush_stha
Автор

Good tutorial & well explanation, thanks mate

nightstalker
Автор

Hi Really Nice videos. I learnt django from watching your videos only its clear and perfect i felt for learners. I have one question for you, i tried to search for Django jobs however most of them ask for Javascript. How they are related ?

Автор

Thank you so much. you'r the man !

ozcanyarimdunya
Автор

great video! question, what if you have node modules or bower components? how do we structure the file system then?

electroacoustico
Автор

Hey there! Thank you for your tutorial, it's amazing and helps a lot!
I got a question. I have always put the static files in the app's 'static/<app_name>' folder. Isn't it safe in the production environment? Thanks

Huseynov
Автор

if have any problem in add css and js and img just add where you put files in here .ex



STATICFILES_DIRS = [
os.path.join(BASE_DIR, "/home/mohammed/Desktop/Firstwebsite/mohammeddjango/wbesiteusa"),
]


change this for your files

MohammedEhssan
Автор

I cannot go one level above. My own project is not setup like this maybe because I use latest version of django? Basically I don't have the src file and so there is no way to put on same level as src. So I put it on same level as manage.py

panagiotisgoulas
Автор

what about connecting javascript files, will they work using the way you shown

sadsad
Автор

when you say My projrct in production will use 2 servers are you talking about css and js or just images and media will be served from amazon s3. And how much total do you spend a month on heroku and amazon per month?

vlisionblank
welcome to shbcf.ru