unalbe to deploy my porject
harshchoudhary07
FREEOP

3 months ago

return check_resolver(resolver)

File "/opt/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 494, in check

for pattern in self.url_patterns:

File "/opt/venv/lib/python3.10/site-packages/django/core/management/commands/migrate.py", line 100, in handle

File "/opt/venv/lib/python3.10/site-packages/django/core/checks/urls.py", line 24, in check_resolver

File "/opt/venv/lib/python3.10/site-packages/django/utils/functional.py", line 57, in get

self.check(databases=[database])

res = instance.__dict__[self.name] = self.func(instance)

File "/opt/venv/lib/python3.10/site-packages/django/core/management/base.py", line 485, in check

File "/opt/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 715, in url_patterns

all_issues = checks.run_checks(

patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)

File "/opt/venv/lib/python3.10/site-packages/django/core/checks/registry.py", line 88, in run_checks

File "/opt/venv/lib/python3.10/site-packages/django/utils/functional.py", line 57, in get

new_errors = check(app_configs=app_configs, databases=databases)

File "/opt/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 708, in urlconf_module

File "/app/neural_budget/urls.py", line 9, in <module>

return import_module(self.urlconf_name)

path('accounts/', include('apps.accounts.urls')), # Accounts app URLs

File "/root/.nix-profile/lib/python3.10/importlib/__init__.py", line 126, in import_module

File "/opt/venv/lib/python3.10/site-packages/django/urls/conf.py", line 38, in include

return bootstrap.gcd_import(name[level:], package, level)

$10 Bounty

2 Replies

Railway
BOT

3 months ago

Hey!

This seems like an issue with your project/application. Unfortunately, we're unable to offer first-party support for issues unrelated to the Railway product or platform.

Other communities such as Stackoverflow might be able to help you out further.


Status changed to Awaiting User Response Railway 3 months ago


bytekeim
PRO

3 months ago

Hy @harshchoudhary07

to fix this, you should go to the file neural_budget/urls.py, find line 9 (or the line that has apps.accounts.urls) and change it to this:


from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    path('admin/', admin.site.urls),
    path('accounts/', include('django.contrib.auth.urls')),  # ← this line 
    # your other paths..]

save , commit , push ,then railway redeploys automatically

tell me if it works


Loading...