Q: This is a ‘help me understand how this works / what it does’ question rather than a ‘help me I’m stuck’ question. I have an existing Django project I wanted to get on Heroku. I created a new site on Heroku, uploaded my project, and ran migrations. But all I have is a generic new, empty Django site. The Django admin knows nothing about my models. Now, granted, I have not yet put up my existing database but I expected it to at least create the tables for my models, which it did not. Of course they are in installed apps, but I did not run ‘startapp’ since the app already exists. So why didn’t this work?
Or, should the question be: 'in the case of moving a pre-existing project, what do you do instead of 'startapp''?
Or maybe I have to run startapp anyway? Why?
Wed Nov 12
$ git status
On branch master
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .gitignore
deleted: Cannon/__init__.py
deleted: Cannon/gettingstarted/__init__.py
deleted: Cannon/gettingstarted/settings.py
deleted: Cannon/gettingstarted/static/humans.txt
deleted: Cannon/gettingstarted/urls.py
deleted: Cannon/gettingstarted/wsgi.py
deleted: Cannon/settings.py
deleted: Cannon/static/humans.txt
deleted: Cannon/urls.py
deleted: Cannon/wsgi.py
modified: Procfile
Untracked files:
(use "git add <file>..." to include in what will be committed)
Baillee/
static/
templates/
no changes added to commit (use "git add" and/or "git commit -a")
(Dayton)
<>
after running git commit and git add:
On branch master
nothing to commit, working directory clean
(Dayton)
Sat Nov 15 after running pgbackup:
ls
Cannon Procfile reitz template.txt runtime.txt
manage.py README.md requirements.txt staticfiles
~ $ cd Cannon
cd Cannon
~/Cannon $ ls
ls
gettingstarted __init__.pyc settings.pyc urls.py
__init__.py settings.py static wsgi.py
--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/u6d7eSOvUgk/unsubscribe.
To unsubscribe from this group and all its topics, 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/546A42DA.3040009%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.