Skip to content

Latest commit

 

History

History
117 lines (86 loc) · 2.39 KB

readme.md

File metadata and controls

117 lines (86 loc) · 2.39 KB

Project layout

custom-command
|
|------Core
|	 |
|	 |----- __pycache__
|	 |----- __init__.py
|	 |----- asgi.py
|	 |----- setting.py
|	 |----- urls.py
|	 |----- wsgi.py 
|
|------custom_command
|	           |
|	           |----------------- __pycache__
|	           |----------------- management
|	           |                          |
|	           |	                      |
|	           |----- migrations 	      |-----commands 
|	           |	   |----__pycache__   |	    |----- __pycache__
|	           |	   |----__init__.py   |	    |----- namegen.py 
|	           |	                      |	    |----- usergen.py 
|	           |----- __init__.py 	      
|	           |----- admin.py 	                        
|	           |----- apps.py 
|	           |----- models.py 
|              |----- tests.py 
|              |----- views.py 
|
|------db.sqlite3
|------manage.py

#1

Auto name generator :
py manage.py namegen

output:

-----------New name---------- 
Name: yVXAPErgG7mMvum
name Generate Succesfully Completed!


Mail Name

Todd Beasley
John Taylor
Kelly Broome
William Mattione
Christopher Kridler
Daren Goodwin
Earnest Reed
Richard Robinson


Femail Name

Rebecca Keller
Melissa Pastian
Gerda Roof
Edith Warren
Jane Hopkins
Sonia Derringer

#2

Auto User Create :

Auto user generator Command:
py manage.py usergen 1

note: ( usergen 1) Here 1 is the quantity

output

===========New User========== 
username: bdrtL3m5PW
email: [email protected]
password : 2uEtdGsMP5
account created Succesfully Completed!

or Create user with full access permissions

    py manage.py usergen 2 -a

output:

You can clone this project if you want and follow the steps below to run.

Creating a virtual environmen

 py -m venv env 

Activating a virtual environment

.\env\Scripts\activate 

install requirements.txt

pip install -r requirements.txt 

database create

py manage.py makemigrations

py manage.py migration

now create superuser then runserver

Run server

py manage.py runserver 

localhost:

http://127.0.0.1:8000/