Skip to content

Python Course comprehensive assignment. A problem sharing platform based on django and html.

Notifications You must be signed in to change notification settings

Hibiki33/ProShare

Repository files navigation

ProShare

Python Course comprehensive assignment.

A problem sharing platform based on django and html.

Necessity

Python 3.10

And necessary packages:

pip install django
pip install pymysql
pip install logging
pip install django-guardian

MySql 8.0

Please install corresponding mysql server on your server and set the root password to 123456 or change it in ProShare/settings.py. Then you need to create a database.

Run "mysql" in your shell and run:

CREATE DATABASE proshare;

After that, exit mysql shell and run:

python manage.py makemigrations
python manage.py migrate

to set up the database properly.

Then you can run the server:

python manage.py runserver

If encounter some server error, delete the database using:

drop database proshare;

and create a new one.

Command

Run server:

python manage.py runserver

Start a new app:

python manage.py startapp <app_name>

After creating new models, run the following command to generate migration files:

python manage.py makemigrations <app_name>

Then run the following command to apply the migration files:

python manage.py migrate

(If you encounter Unknown column 'xxx' in 'field list') Run this when you want to delete all the data in a table:

python manage.py migrate <app_name> zero

Create a superuser:

python manage.py createsuperuser

Contributors

Front-end:

Back-end:

About

Python Course comprehensive assignment. A problem sharing platform based on django and html.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •