I am tryin to piece things together.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################## | |
# | |
# Replace the fields with your app and domain name | |
# | |
################################################## | |
DirectoryIndex <app name>/public/index.php index.html index.htm index2.html | |
RewriteEngine on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const FORM = document.querySelector('form'); | |
const submit = (e) => { | |
// prevent default action ie page refresh | |
e.preventDefault(); | |
// submit form | |
FORM.submit(); | |
i am tryin to piece things together
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 | |
height: 500 | |
scrolling: no | |
border: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib import admin | |
from django.urls import path, include | |
urlpatterns = [ | |
path('admin/', admin.site.urls), | |
path('accounts/', include('accounts.urls')), | |
] |
Easily create a superuser for your django project using this simple line.
I found this trick on the Quickstart guide from the django-rest-framework docs
$ python manage.py createsuperuser --username admin --email admin@example.com
Password: **********
Password (again): **********
Superuser created successfully.
NewerOlder