File | Date | Author | Commit |
---|---|---|---|
accounts | 2022-11-20 |
![]() |
[681687] v0.5.0 Change in the interface and front-end fu... |
codeshine | 2022-12-14 |
![]() |
[139896] v0.8.0 Fine tuned for final deployment |
departments | 2022-12-19 |
![]() |
[0f7e2f] Add Readme and minor fix |
diems | 2022-12-14 |
![]() |
[aa8d34] Fix setting w.r.t. pythonanywhere.com - static ... |
home | 2022-12-13 |
![]() |
[1a7cc3] v0.7.4 Include developer section |
.gitignore | 2022-12-08 |
![]() |
[582a7c] v0.7.3 fix css map issue |
LICENSE | 2022-09-18 |
![]() |
[d14916] Initial commit |
README.md | 2022-12-19 |
![]() |
[0f7e2f] Add Readme and minor fix |
manage.py | 2022-09-18 |
![]() |
[d62178] start project - (first commit) |
CodeShine (a part of Di website) - is an application for posting, submitting, and evaluating assignments. As a whole, 'Di' is a shorthand for Deogiri Institute of Engineering and Management Studies, Aurangabad 431001, Maharashtra, India
.
This is an open-source and free project, you can use the source code at your convenience and contribute to it. Now, this code belongs to you!
This is an introductory video, for version v1/stable
, hope you find it helpful.
All the files during the creation of the website, for the first time, as a mini-project work, in December 2022, are stored in the drive folder.
Go to the directory, more likely ./diems
where the manage.py
is stored. This file is the starting point for any Django project.
Make sure the Python and Django is installed and in it's latest version. At the time of the creation of this project we used the following commands:
bash
$ sudo apt install python3 python3-pip
$ pip3 install Django==4.1.4
If you are using a Linux distribution other than Debian-based, or Windows or any other operating system, consider referring to the official documentation.
If you want to run in production - i.e.
```py
DEBUG = False
```
You need to install the whitenoise
through the python package manager, as:
bash
$ pip3 install whitenoise
Also, at the time of configuration, you need to collect static files, for whitenoise
to serve them automatically, as:
bash
$ python3 manage.py collectstatic
You may need to run it after each change in the code, for the development. Again, If you are using a Linux distribution other than Debian-based, Windows, or any other operating system, consider referring to the official documentation.
If you do not want to run in production, go to ./diems/settings.py
and set the DEBUG
value to True
.
```py
DEBUG = True
```
Now, you don't need to care about above point 3
.
It's time to make a database configuration, to do so, run the following commands:
bash
$ python3 manage.py makemigrations home departments accounts codeshine
and to apply settings,
bash
$ python3 manage.py migrate
Before starting the server, we need to create a superuser, an admin for the website, as:
bash
$ python3 manage.py createsuperuser
Follow the instructions as instructed and you have done configuring it.
Make sure you have completed step 02
successfully.
To run the server, you must be in the directory where the manage.py
existed. Then run the following command:
bash
$ python3 manage.py runserver
That's it, the server is now running. If there is a problem while running, double-check the previous steps, you can even try to find the solution online.
If you want to terminate the server, press CTRL
+ C
simultaneously.