Booting worker with pid: 11
luhsdm
HOBBYOP

2 years ago

Guys, I try to make my project django/pyhton, and my deploy logs send this:

[2024-05-30 19:59:37 +0000] [7] [INFO] Starting gunicorn 22.0.0

[2024-05-30 19:59:37 +0000] [7] [INFO] Listening at: http://0.0.0.0:7326 (7)

[2024-05-30 19:59:37 +0000] [7] [INFO] Using worker: sync

[2024-05-30 19:59:37 +0000] [11] [INFO] Booting worker with pid: 11

At my Procfile> web: gunicorn django_adminlte.wsgi --log-file -

Tha'ts wrong?
I cant see my project at web

5 Replies

luhsdm
HOBBYOP

2 years ago

And I start the link:
bibliotecahogwarts.up.railway.app

Not Found
The requested resource was not found on this server.


luhsdm
HOBBYOP

2 years ago

Failed to load resource: the server responded with a status of 404 ()

Attachments


brody
EMPLOYEE

2 years ago

You see a 404 because you don't have a page registered for the root.


luhsdm
HOBBYOP

2 years ago

Guys, I need some help, why cant have the page?
my urls.py at directory program
def index(request):
return render(request, 'login.html')

def cadastro(request):
return render(request, 'cadastro.html')

def login(request):
return render(request, 'login.html')

def verlivros(request): return render(request, 'verlivros.html')

def veremprestimos(request): return render(request, 'veremprestimos.html')

def verdevolucao(request): return render(request, 'verdevolucao.html')

and my urls>from django.contrib import admin
from django.urls import path, include
from adminlte import views
from django.conf.urls.static import static
from django.conf import settings

urlpatterns = [
path('admin/', admin.site.urls),
path('', views.index, name='index'),
path('usuarios/', include('usuarios.urls')),
path('livro/', include('livro.urls')),
path('verlivros/', views.verlivros, name='verlivros'), path('veremprestimos/', views.veremprestimos, name='veremprestimos'),

] + static(settings.MEDIAURL, documentroot=settings.MEDIA_ROOT)

I dont know Why its doesn't work


brody
EMPLOYEE

2 years ago

Please see my previous message.


Loading...