Skip to content

Commit

Permalink
Merge pull request #308 from raxelg/readme-update
Browse files Browse the repository at this point in the history
Updated README for newer django version setup
  • Loading branch information
soyapark authored Dec 17, 2020
2 parents 45a032a + 6f65c7f commit 07d89ca
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions scripts/new_database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,23 @@ mysql -u root -p$password <<EOF
EOF

# create the initial tables
python manage.py syncdb;

# create the initial schema migration with south
python manage.py makemigrations schema;
# Convert schema app
python manage.py schemamigration schema --initial;

# apply the schema migration
# Apply the migrations:
python manage.py migrate --noinput
python manage.py migrate schema

# Then do fake migration:
python manage.py migrate schema 0001 --fake

# Sync registration schema:
python manage.py migrate --run-syncdb

# Create superuser
python manage.py createsuperuser

# alter tables to utf8
mysql -u root -p$password <<EOF
USE $databaseName;
Expand Down

0 comments on commit 07d89ca

Please sign in to comment.