Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.26 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.26 KB

About

These are very simple powershell scripts to kickstart your django project.

./raw_django.ps1 <working_dir>: Just builds a standard Django app.

./user_model.ps1 <working_dir>: Generates a user model with your standard Django app which relies on an email and password for authentication instead of a usename and password.

./user_template_api.ps1 <working_dir>: Generates a user model with templates, static styling, and APIs for logins, logouts, listing users, and fetching user details.

./drf-user_model.ps1 <working_dir>: Generates a user model and a back-end API with Django REST Framework for creating users and logging in.

Instructions:

  1. Open PowerShell with administrator privileges and run the following command:

    Set-ExecutionPolicy RemoteSigned
  2. Choose the script you want to run based on your project requirements. For example:

    .\raw_django.ps1 example-directory
    .\user_model.ps1 C:\Projects\existing-django-project
    .\user_template_api.ps1 .
    .\drf-user_model.ps1 C:\Projects\MyDjangoProject

Finally, you need to run python manage.py createsuperuser before running the server.