add test app to manually test the package
This commit is contained in:
parent
b5e46ef712
commit
df9e4d8c61
|
@ -36,6 +36,7 @@ INSTALLED_APPS = [
|
|||
"django.contrib.messages",
|
||||
"django.contrib.staticfiles",
|
||||
"django_cryptolock",
|
||||
"testauth",
|
||||
# if your app has other dependencies that need to be added to the site
|
||||
# they should be added here
|
||||
]
|
||||
|
@ -109,3 +110,10 @@ USE_TZ = True
|
|||
# https://docs.djangoproject.com/en/1.9/howto/static-files/
|
||||
|
||||
STATIC_URL = "/static/"
|
||||
|
||||
# Monero Cryptolock Settings
|
||||
# Wallet RPC
|
||||
MONERO_WALLET_RPC_PROTOCOL = os.environ.get("MONERO_WALLET_RPC_PROTOCOL", "http")
|
||||
MONERO_WALLET_RPC_HOST = os.environ.get("MONERO_WALLET_RPC_HOST", "localhost:6000")
|
||||
MONERO_WALLET_RPC_USER = os.environ.get("MONERO_WALLET_RPC_USER")
|
||||
MONERO_WALLET_RPC_PASS = os.environ.get("MONERO_WALLET_RPC_PASS")
|
||||
|
|
|
@ -20,4 +20,5 @@ from django.contrib import admin
|
|||
urlpatterns = [
|
||||
url(r"^admin/", admin.site.urls),
|
||||
url(r"", include("django_cryptolock.urls", namespace="django_cryptolock")),
|
||||
url(r"^auth/", include("testauth.urls")),
|
||||
]
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
|
@ -0,0 +1,5 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class TestauthConfig(AppConfig):
|
||||
name = 'testauth'
|
|
@ -0,0 +1,3 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
|
@ -0,0 +1,3 @@
|
|||
from django.conf.urls import url
|
||||
|
||||
urlpatterns = []
|
|
@ -0,0 +1,3 @@
|
|||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
Loading…
Reference in New Issue