Skip to content

Privia Security tarafından bir sonraki aşamaya geçmek için verilen staj görevi

Notifications You must be signed in to change notification settings

Kadermiyanyedi/PriviaSecurityInternshipChallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Simple Rest Api Project

Setup

Project Clone

  • git clone [email protected]:Kadermiyanyedi/PriviaSecurityInternshipChallenge.git
  • cd PriviaSecurityInternshipChallenge

Create a virtual environment to isolate our package dependencies locally

  1. Create venv python -m venv env

  2. Activate venv

  • On Linux use : source env/bin/activate

  • On Windows use : env\Scripts\activate


Install Django and Django REST framework into the virtual environment

  • pip install -r requirements.txt

Migrate Database

  • cd blog
  • python manage.py migrate

Admin Panel and Login Page

username : admin password: admin

If you want create a new super user : python manage.py createsuperuser --email [email protected] --username admin

Start Server

python manage.py runserver

Go to localhost:8000 in your browser

Run Test

python manage.py test api

About

Privia Security tarafından bir sonraki aşamaya geçmek için verilen staj görevi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published