Skip to content

PalasOnGithub/CharityDjango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CharityDjango 🇮🇷

Developed by Palas - 2023

Setting up the project

in the root dir where the khanemehr is located in , make a .env file at fill it as this :


SECRET_KEY = 'django-insecure-<your-secret-key>'
DEBUG = True # whatever you prefer to have it true which means debug in on and your developin
# or set it to False which means the project is on production

and after that set up a venv and activate it in the main dir:

python -m venv <your-venv-name>
cd <your-venv-name>/Scripts/
activate 

#if youre using windows powershell then run this
Activate.bat

after that its time to install libraries needed which include django , Pillow and more...

pip3 install -r pkgneeded.txt 

Migrations and Migrate

to use db features and models in this repo you need to migrate them , then:

#the app name is optional , you can dont use it and still getting all migratios
python manage.py makemigrations <app_name>
python manage.py migrate

Collecting Statics

to use styles in this repo you need to run this commond which collect staticfiles:

python manage.py collectstatic

and then create super user and probably you're done! ❤️

python manage.py createsuperuser
#then enter a username and password , the email is optional !

star the rep on github ❤️

About

a django project for charity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published