The repository is a django project for community meetings.
- python: 3.5+
- django:3.0.8
- mysql:8.0.18
File ==> New Project ==> Django:
You can create a new interpreter or use the Existing interpreter
.Then give your app a Application name
in More settings
, you can also run python manage.py startapp appname
to build your app.
After creating, run python manage.py runserver
.The following output means that you've started the django project.
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s):admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
August 06, 2020 - 15:32:56
Django version 2.2.5, using settings 'untitled.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
- Check your mysql username and password.If you can't link to mysql(it return a code 1045 mostly),maybe you need to add the following in
meetings/__init__.py
.
import pymysql
pymysql.install_as_MySQLdb()
- Most APIs may need a token.After all configured you can run
python manage.py runserver 8000 thetoken
to introduce the token. - Most time you start the project,may need to run
python manage.py makemigrations
and then runpython manage.py migrate
to ensure running.