Add requirements.txt and README instructions for test project setup
Closes #32.
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
from __future__ import print_function
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
User.objects.filter(username='admin').delete()
|
||||
User.objects.create_superuser('admin', 'admin@admin.admin', 'passwordadmin')
|
||||
username = 'admin'
|
||||
email = 'admin@admin.admin'
|
||||
password = 'passwordadmin'
|
||||
User.objects.filter(username=username).delete()
|
||||
User.objects.create_superuser(username, email, password)
|
||||
|
||||
print("Created superuser '%s <%s>' with password '%s'" % (username, email, password))
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
drf-yasg[validation]
|
||||
Django>=1.11.7
|
||||
-r ../requirements/testproj.txt
|
||||
Reference in New Issue
Block a user