please, tell me what is wrong in my first view Django because not working https://github.com/Fgregorio1/ftgtraderexample.git
Asked
Active
Viewed 42 times
-3
-
You haven't said what the problem is. 'not working' isn't enough information to help - please show the full error and traceback. You're less likely to get an answer if you link to a repository instead of showing the code here. – Alasdair Oct 08 '19 at 14:01
-
The repository consists of two django projects. One has the view that you want to access from the other's urls.py – Frank Oct 08 '19 at 14:11
1 Answers
0
- Remove second django project dir 'myproject'
- Add 'path('', views.home, name='home'),' to your urls.py inside newsite
from django.contrib import admin
from django.urls import path
from boards import views
urlpatterns = [
path('', views.home, name='home'),
path('admin/', admin.site.urls),
]
additional i'd suggest:
- don't add venv directory to git repository (senseless)
- instead add 'requirements.txt' to project root with the needed packages
- Think about making 'SECRET_KEY' really secret

Frank
- 1,959
- 12
- 27