Re: Problem in part 6, CSS doesn't work

2018-05-30 Thread Mikko Meronen
Hi, The css file is in .../polls/static/polls/style.css And here is the full code of .../polls/templates/polls/index.html: {% load static %} {% if latest_question_list %} {% for question in latest_question_list %} {{ question.question_text }} {% endfor %} {% else %}

Re: Problem in part 6, CSS doesn't work

2018-05-29 Thread Vijay Khemlani
That's only for production environments, for development you don't need to run that command Where did you finally put the css file and what path did you put in the tag? On Tue, May 29, 2018 at 1:46 PM Mikko Meronen wrote: > Hi, > > Thank you, but I should have those correct. > > I did some goo

Re: Problem in part 6, CSS doesn't work

2018-05-29 Thread Mikko Meronen
Hi, Thank you, but I should have those correct. I did some googling and ran following: python manage.py collectstatic And I got this: Django-project\lib\site-packages\django\contrib\staticfiles\storage.py", line 43, in path raise ImproperlyConfigured("You're using the staticfiles app " djan

Re: Problem in part 6, CSS doesn't work

2018-05-29 Thread s.f.wrobel via Django users
> > Make sure that you add the following line to your settings.py: INSTALLED_APPS = [ 'YOUR_APP_NAME', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] In your case YOUR_APP_NAME s

Re: Problem in part 6, CSS doesn't work

2018-05-26 Thread Mikko Meronen
In PowerShell it says: [26/May/2018 17:45:14] "GET /static/polls/style.css HTTP/1.1" 404 1669 2018-05-26 17:42 GMT+03:00 Mikko Meronen : > Hi, > > Still the same problem :( > > Mikko > > 2018-05-26 17:30 GMT+03:00 Dylan Reinhold : > >> Mikko, >> Your css file is polls/static/polls/images/style

Re: Problem in part 6, CSS doesn't work

2018-05-26 Thread Mikko Meronen
Hi, Still the same problem :( Mikko 2018-05-26 17:30 GMT+03:00 Dylan Reinhold : > Mikko, > Your css file is polls/static/polls/images/style.css but you are trying > to link to polls/style.css which would be [ olls/static/polls/style.css ] > > Move your style.css file one folder folder down in

Re: Problem in part 6, CSS doesn't work

2018-05-26 Thread Dylan Reinhold
Mikko, Your css file is polls/static/polls/images/style.css but you are trying to link to polls/style.css which would be [ olls/static/polls/style.css ] Move your style.css file one folder folder down into polls/static/polls/ style.css Dylan On Sat, May 26, 2018 at 6:52 AM, Mikko Meronen wrot

Problem in part 6, CSS doesn't work

2018-05-26 Thread Mikko Meronen
Hi, I can't get the CSS code to work. Link color doesn't change to green nor the background image appear. What could be the problem? The CSS code is in Wordpad. polls/static/polls/images/style.css: li a { color: green; } body { background: white url("images/background.gif") no-repeat; } p