CSS not rendering correctly

33 views
Skip to first unread message

Warren Jacobus

unread,
Apr 2, 2014, 7:45:20 AM4/2/14
to django...@googlegroups.com
Hi,

I'm having some trouble with my css in my django app. See pic for how things get rendered.

Could anyone suggest what the problem could be.

Thanks
Welcome JetStream Airlines.png

Shai Efrati

unread,
Apr 2, 2014, 7:50:41 AM4/2/14
to django...@googlegroups.com
It seems to me that your app doesn't knwo where to pull the CSS from.
Can you post your directories structure and your base.html?


Shai.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ca0959a0-c617-4688-95e8-8de529373650%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniele Procida

unread,
Apr 2, 2014, 7:52:58 AM4/2/14
to django...@googlegroups.com
On Wed, Apr 2, 2014, Warren Jacobus <wjaco...@gmail.com> wrote:

>I'm having some trouble with my css in my django app. See pic for how
>things get rendered.

Restart your server, in case you introduced some key files after you last started it, or run collectstatic <https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#collectstatic> in case your static files (such as CSS) are not being served up properly.

Daniele

Warren Jacobus

unread,
Apr 2, 2014, 8:14:14 AM4/2/14
to django...@googlegroups.com
here is my directory structure:

/Users/warren/sites/env/flight_manager/project/flight_manager

(flight_manager)warren@bash:$ ls
db.sqlite3  db_stuff.txt  flightBooking  flight_manager  manage.py  static  templates

here is what is in flight_manger and flightBooking

flight_manager:  __init__.py  __init__.pyc  settings.py settings.pyc  urls.py  urls.pyc  wsgi.py  wsgi.pyc
flightBooking: __init__.py  __init__.pyc  admin.py  admin.pyc models.py  models.pyc  tests.py  views.py  views.pyc

Warren Jacobus

unread,
Apr 2, 2014, 8:16:04 AM4/2/14
to django...@googlegroups.com

here is my directory structure:

/Users/warren/sites/env/flight_manager/project/flight_manager

(flight_manager)warren@bash:$ ls
db.sqlite3  db_stuff.txt  flightBooking  flight_manager  manage.py  static  templates

here is what is in flight_manger and flightBooking

flight_manager:  __init__.py  __init__.pyc  settings.py settings.pyc  urls.py  urls.pyc  wsgi.py  wsgi.pyc
flightBooking: __init__.py  __init__.pyc  admin.py  admin.pyc models.py  models.pyc  tests.py  views.py  views.pyc

Warren Jacobus

unread,
Apr 2, 2014, 8:17:11 AM4/2/14
to django...@googlegroups.com
this is the line I put in my settings.py file

STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),)

On Wednesday, 2 April 2014 13:50:41 UTC+2, Shai Efrati wrote:
Reply all
Reply to author
Forward
0 new messages