mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-22 14:40:50 +03:00
Move web app to to the root of the project
This commit is contained in:
parent
f1e4e1ce58
commit
020fe141dd
|
@ -31,7 +31,7 @@ ALLOWED_HOSTS = []
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
'githubnavigator.web.apps.WebConfig',
|
'web.apps.WebConfig',
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
|
|
|
@ -17,6 +17,6 @@ from django.contrib import admin
|
||||||
from django.urls import path, include
|
from django.urls import path, include
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', include('githubnavigator.web.urls')),
|
path('', include('web.urls')),
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
]
|
]
|
||||||
|
|
|
@ -5,7 +5,7 @@ from . import views
|
||||||
|
|
||||||
|
|
||||||
class WebConfig(AppConfig):
|
class WebConfig(AppConfig):
|
||||||
name = 'githubnavigator.web'
|
name = 'web'
|
||||||
|
|
||||||
def ready(self):
|
def ready(self):
|
||||||
container.wire(modules=[views])
|
container.wire(modules=[views])
|
|
@ -7,7 +7,7 @@ from github import Github
|
||||||
from githubnavigator import container
|
from githubnavigator import container
|
||||||
|
|
||||||
|
|
||||||
class SampleTests(TestCase):
|
class IndexTests(TestCase):
|
||||||
|
|
||||||
def test_index(self):
|
def test_index(self):
|
||||||
github_client_mock = mock.Mock(spec=Github)
|
github_client_mock = mock.Mock(spec=Github)
|
Loading…
Reference in New Issue
Block a user