Reputation: 2192
I recently implemented a copy of the django-blog zinnia via django on Heroku. Here is the link of the site now running. http://warm-snow-8555.herokuapp.com
I created this by following three different tutorials in tandem, Django's, Zennia's, and Heroku's. I want to change the weblog from the default look to my own, but I'm uncertain about how exactly should I accomplish that.
Currently, my urls.py does this:
urlpatterns = patterns('',
url(r'^$', include('zinnia.urls')),
url(r'^weblog/', include('zinnia.urls')),
url(r'^comments/', include('django.contrib.comments.urls')),
url(r'^admin/', include(admin.site.urls)),
)
...it works, but zinnia is in the venv folder (created by virtualenv) and any changes I make to those file will not persist to the heroku version online.
\venv\Lib\site-packages\zinnia
directory and get rid of the url refences to the zinni directory altogether?Upvotes: 1
Views: 215
Reputation: 33824
Unfortunately, there is really a lot behind this question. This involved not only database persistent, but a variety of other factors.
Instead of answering this question, I'd just like to link you to the official Django docs. What I'd do is go through the official tutorial on your own, and make sure you understand how it works.
What is likely your issue is that you haven't setup and/or configured your database.
Upvotes: 1