This forum is no longer active. Please post your questions to our new community site
Newbie: django admin
|
|
Hi all, Newbie question: I am using bitnami django stack to teach myself django. I am working through the django tutorial at http://djangoproject.com (Polls/Choices). My problem is in part 2 of the django tutorial where we setup the admin interface. The good news is that I can see the Poll/Choice data. I can log into admin and see the Poll/Choice data. The bad news is that the page is text only. It looks like hell compared to the images in the tutorial. It is almost as if there is a css file and images missing. Since apache the on bitnami is more complicated than what the django tutorial uses, I have no idea where the static files belong to properly fix this. Where should I put a css file to fix this admin interface? Do these belong under my project? Or somewhere in the bitnami stack? Please advise. Thanks! |
|
|
Hi, BitNami Django Stack configures Apache with mod_wgsi. I hope this helps you http://docs.djangoproject.com/en/dev/howto/stat… |
|
|
I read the article you linked to, but I’m a little confused what the problem/solution is. Thanks |
|
|
It is a performance improvement. Copied from the Django docs: “Django developers mostly concern themselves with the dynamic parts of web applications – the views and templates that render anew for each request. But web applications have other parts: the static files (images, CSS, Javascript, etc.) that are needed to render a complete web page. For small projects, this isn’t a big deal, because you can just keep the static files somewhere your web server can find it. However, in bigger projects – especially those comprised of multiple apps – dealing with the multiple sets of static files provided by each application starts to get tricky." |
|
|
I have had the same problem with deployment OSQA application on top of DjangoStack appliance. <Directory /opt/bitnami/apps/django/lib/python2.6/site-packages/django/contrib/admin/media/> — Take a look at HTML what generated by your Django project/application and find the virtual path where it expected to find CSS files and write an according rule to the django.conf file. |
|
|
Thanks for sharing this. |

