Swapnil
*all
Anonymous
Swapnil
yes
Anonymous
yes
Then show us the logs
Nikolay
i follwed docs properly
check names of heroku files and app 100% problen is there
Swapnil
2020-07-12T13:23:52.668417+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=swapcal.herokuapp.com request_id=c00ffc9b-5605-45d3-a35f-d7d5b4fa56ed fwd="49.35.201.190" dyno= connect= service= status=503 bytes= protocol=http 2020-07-12T13:24:25.027796+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=swapcal.herokuapp.com request_id=9cf66243-4e7f-47b9-8701-c46e0ce3f202 fwd="49.35.201.190" dyno= connect= service= status=503 bytes= protocol=http 2020-07-12T13:28:08.327991+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=swapcal.herokuapp.com request_id=a5a89793-1a38-44c8-a2a7-73d1506a50ae fwd="49.35.201.190" dyno= connect= service= status=503 bytes= protocol=http
Nikolay
show us Procfile
Swapnil
no
Nikolay
no
you won't show or you did not edit? =)
Baku
why doesn't digitalocean give me $ 100 for a start?
Baku
i got only 50$ from github student pack
Cheap
i got only 50$ from github student pack
as per terms, student pack only offers 50$ for digitsl ocean
Swapnil
in settings.py file only edit is import heroku and template_dir
the_programmer
Hi. I have a view in which I'm query a model using get_list_or_404, it is returning 404 even though I have records in the db. I tried the same thing in shell and it is returning proper list
Nikolay
i am not edit that one
share your Procfile
Gowtham
Hey guys i want to do crud operation in restapi but there is no models in app because I called database directly in views.py like SQL.connect and execute it is possible to do crud operation in that?
the_programmer
Show your code by dpaste.de
It's just a simple api view with get method having get_list_or_404(Tag)
snc
hey, their use to be guy name David, what happend to him?
the_programmer
Show your code by dpaste.de
Right after that line I used a print statement to see if the queryset has anything and it prints Not found
the_programmer
Right after that line I used a print statement to see if the queryset has anything and it prints Not found
And I did the same thing in shell. It returned the list instead of 404 as expected
the_programmer
share your code
Is it possible to send a snap. Bcz I'm using an ofc assert. So telegram is blocked in that assert
the_programmer
https://dpaste.org/c8aK
Btw, detailview working fine
Nikolay
Btw, detailview working fine
why you need getlist? tag = Tag.objects.all() doesn't work?
the_programmer
why you need getlist? tag = Tag.objects.all() doesn't work?
.all also not working and the reason for using get is to raise a 404 when the list is empty
Nikolay
.all also not working and the reason for using get is to raise a 404 when the list is empty
I know how it works, I don't understand why you need this. when you're using get or 404 you excepted server error
the_programmer
.all also not working and the reason for using get is to raise a 404 when the list is empty
I think it's because of the ide. I change the url pattern and removed the get_list and used model manager .all in view. I got an error stating pattern doesn't exist. Is it because of the pycache?
Baku
s
Deepak
what is the use of request.Files ?
Nikolay
what is the use of request.Files ?
files that posted throw the form
Random
Hello
Deepak
why is it use during updating of information through the form
Anonymous
I am facing error during template rendering
Anonymous
<li classname='nav'><a href='{%url 'home'%}'>Home</a>
Anonymous
Can anyone help
محمد دلشاد
<li classname='nav'><a href='{%url "home" %}'>Home</a>
محمد دلشاد
try this
Deepak
whats the error
محمد دلشاد
use quote in alternate manner
Deepak
?
Anonymous
use quote in alternate manner
It is in alternatanner
Anonymous
Manner*
Deepak
close list tag
Anonymous
whats the error
Template rendering error
محمد دلشاد
double quotes inside single and single inside double
Anonymous
close list tag
Can i send you image oeraonaly
Deepak
<li classname='nav'><a href='{% url "home" %}'>Home</a></li>
Anonymous
it doesnt raise django errors
Code is clean....it is something url based
محمد دلشاد
Code is clean....it is something url based
are u sure u have used alternate codes
Anonymous
Reverse of "home" not found."home" is not a valid view function or pattern name
محمد دلشاد
quotes*
Atharva Paliwal
<li classname='nav'><a href="{%url 'home'%}">Home</a></li>
Deepak
send urls.py
Anonymous
urlpatterns = [ path('admin/', admin.site.urls), path('', include('jobs.urls'), name='main'), path('', include('blog.urls'), name='blog'),
Anonymous
app_name = 'jobs' urlpatterns = [ # post views path('', views.home, name='home'), path('contact/', views.contact, name='contact'), path('portfolio/', views.portfolio, name='portfolio'),
Anonymous
<li class="nav-item"><a class="nav-link" href="{%url 'home' %}">Home</a></li>
Doragonsureiyā
urlpatterns = [ path('admin/', admin.site.urls), path('', include('jobs.urls'), name='main'), path('', include('blog.urls'), name='blog'),
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
Nikolay
{% url 'jobs:home' %} ?
Nikolay
and remove name for included urls
Nikolay
and maybe create namespaces
Anonymous
waorked
Deepak
request.POST, request.FILES
Deepak
both are different?
Deepak
request.post contains data then why we need request.FILES
Nikolay
request.post contains data then why we need request.FILES
to know that data in POST and files are in FILES =)