Discussion about this post

User's avatar
Katharine Hill's avatar

Hey, Eric. I just wanted to thank you for reaching out to me a while ago when I was unable to post on my own Substack. Your kind attention gave me the will to keep trying, and I am now posting somewhat regularly. The technology part of it annoys me still; but the thought of your cleverness with subjects beyond my comprehension let’s me relax and enjoy my English major’s sensibility and write to my heart’s content. Katharine

P.S. I never figured out what I was missing before. All of a sudden I was able to post. And then some of my previous musings became published as well. Mysterious but welcome.

Expand full comment
Ashraf's avatar

Yes ran into this(urls.py) and similar issues(with setting.py) when I was starting with Django.

So I don't touch setting.py

create conf/settings/ folder with settings_local.py & settings_prod.py files

------------------------------------------

from .base_settings import *

THIRD_PARTY_APPS = ['debug_toolbar']

PROJECT_APPS = ['']

INSTALLED_APPS = INSTALLED_APPS + THIRD_PARTY_APPS + PROJECT_APPS

-------------------------------------------

on same lines urls.py

-------------------------------------------

urlpatterns = [

path('admin/', admin.site.urls),

]

app_urlpatterns = [path('synths/', include('synths.urls')), path('string/', include('synths.urls')),]

project_urlpatterns = [path('', include('pianos.urls')),]

urlpatterns = urlpatterns + app_urlpatterns + project_urlpatterns

--------------------------------------------

Expand full comment
4 more comments...

No posts