-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfaq.txt
More file actions
32 lines (24 loc) · 821 Bytes
/
faq.txt
File metadata and controls
32 lines (24 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
```how to kill the server process
# kill it more conviniently
$ kill -INT `cat /tmp/project-master.pid`
# or
$ uwsgi --stop /tmp/project-master.pid
```how to create superuser
#Create super user
$python manage.py createsuperuser
```how to reset model migrations
$find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
$find . -path "*/migrations/*.pyc" -delete
#Drop the current database, or delete the db.sqlite3 if it is your case.
$ python manage.py showmigrations
$ python manage.py migrate --fake app zero
$ python manage.py showmigrations
```how to start
$ django-admin startproject mysite
$ python manage.py runserver
$ python manage.py startapp polls
```how to start aerpaw-portal
UWSGI_UID=$(id -u) UWSGI_GID=$(id -g) ./run_uwsgi.sh
```
```Create super user
$python manage.py createsuperuser