This Application is used to list the teachers in collage, this app is very nice to manage the workers(teachers) in a collage it conatains the detatil information of the teachers name, age, favorite courese, level of education etc .. this is
- 'As an unregistered user, I would like to sign up with email and password.
- As a registered user, I would like to sign in with email and password.
- As a signed in user, I would like to change password.
- As a signed in user, I would like to sign out.
- As a signed in user, I would like to add a teacher to database (app).
- As a signed in user, I would like to update the teacher that .
- As a signed in user, I would like to delete my teacher on from the data base(app).
- As a signed in user, I would like to see all my all teachers on Application
- Django Bd
- python
- rest_framework', '- rest_framework.authtoken',
- command line
- envronmental shell
- git
- github
- download template from github-page
- git clone or download
- move .zip file and unzip it
- replace read me by your own
- git init (means create git folder)
- Create a
.env
file - Add a key
ENV
with the valuedevelopment
- Run
pipenv shell
to start up your virtual environment. - Run
pipenv install
to install dependencies. - Create a psql database for your project_db_name
- Edit
settings.sql
then runpsql -U postgres -f settings.sql
OR:- Type
psql
to get into interactive shell. - Run
CREATE DATABASE "project_db_name";
whereproject_db_name
is the name you want for your database.
- Type
- Add the database name to the
.env
file using the keyDB_NAME_DEV
. - Replace all instances of
django_auth_template
with your application name. This includes the folder included in this repository.
Commands are run with the syntax python3 manage.py <command>
:
command | action |
---|---|
runserver |
Run the server |
makemigrations |
Generate migration files based on changes to models |
migrate |
Run migration files to migrate changes to db |
startapp |
Create a new app |
Verb | URI Pattern |
---|---|
GET | /teachers/ |
GET | /teachers/<int:pk>/ |
POST | /teachers |
PATCH | /teachers/<int:pk>/ |
DELETE | /teachers/<int: pk/ |
- still it need add resource
- add more paths...
RED IMAGE ..for a time bing it is one to one relationship I have the user and resource.