show me your django app url and views as well.
On Tue, Aug 17, 2021 at 1:10 AM DJANGO DEVELOPER
wrote:
> okay add a url. first of all import the view into urls.py file and make a
> path.
>
> On Mon, Aug 16, 2021 at 5:32 PM 'Rahul Chauhan' via Django users <
> django-users@googlegroups.com> wrote
okay add a url. first of all import the view into urls.py file and make a
path.
On Mon, Aug 16, 2021 at 5:32 PM 'Rahul Chauhan' via Django users <
django-users@googlegroups.com> wrote:
> Here is how the the project's url.py looks like. Not made any changes to
> it.
>
> [image: dj_4.jpg]
>
> *chan
Here is how the the project's url.py looks like. Not made any changes to it.
[image: dj_4.jpg]
*change_list.html: *Copied
this
(https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/change_list.html)
to
the local app folder.
On Monday, August 16, 2021 at 3:36:27 PM
is it because i have forgotten to import CommentForm?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this
then a new error pops up:
[image: Udklip3.PNG]
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group
Use id instead of pk
On Oct 12, 2018 10:34, "Glen D souza" wrote:
>
> *def add_comment(request, slug):*
> *post = get_object_or_404(Post, slug=slug)*
> *if request.method == 'POST':*
> *form = CommentForm(request.POST)*
> *if form.is_valid():*
> *comment = for
*def add_comment(request, slug):*
*post = get_object_or_404(Post, slug=slug)*
*if request.method == 'POST':*
*form = CommentForm(request.POST)*
*if form.is_valid():*
*comment = form.save(commit=False)*
*comment.post = post*
*comment.save()
If i do that i get another error:
[image: Udklip2.PNG]
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to thi
try renaming path('post//comment/', views.add_comment, name=
'add-comment'),
to path('post//comment/', views.add_comment, name='add-comment'),
On Fri, 12 Oct 2018 at 12:36, Robert CR wrote:
> i fixed the error, thanks. But there is already a new one when i try to
> add a comment. D:
>
> [image:
i fixed the error, thanks. But there is already a new one when i try to add
a comment. D:
[image: Udklip.PNG]
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to d
Hello,
Have you tried adding an app_name = 'your_app_name' in the URLs.py file?
Thanks
On Oct 12, 2018 09:36, "Glen D souza" wrote:
> Hi,
>
> Try after name-spacing url patterns i.e
>
> app_name = 'blog'
>
> urlpatterns = [
> path('', PostListView.as_view(), name='blog-home'),
> path('us
Hi,
Try after name-spacing url patterns i.e
app_name = 'blog'
urlpatterns = [
path('', PostListView.as_view(), name='blog-home'),
path('user//', UserProfileListView.as_view(), name=
'user-profile' ),
path('user//posts/', UserPostListView.as_view(), name=
'user-posts'),
path('user
Try adding for action to your add_comment url then submit the form.
I guess currently form is getting submitted in the same page.
On Friday, October 12, 2018 at 12:00:03 PM UTC+5:30, Robert CR wrote:
>
> here is the template file.
>
> *add_comment.html*
>
>
>
> *{% extends "blog/base.html" %}{% l
here is the template file.
*add_comment.html*
*{% extends "blog/base.html" %}{% load crispy_forms_tags %}{% block content
%}{%
csrf_token %} Comment {{ form|crispy }}
Post Comment!
{% endblock content %}*
--
You r
Please provide snapshot of your template file as well as project's urls.py
file.
On Friday, October 12, 2018 at 11:14:22 AM UTC+5:30, Robert CR wrote:
>
> I am making a blog app for my django website. Right now i'm making a
> comment feature, but when i try to view a post and the posts comments
I think it has something to do with my urls.py and views.py
*urls.py*
from django.urls import path
from .views import (
PostListView,
PostDetailView,
PostCreateView,
PostUpdateView,
PostDeleteView,
UserPostListView,
UserProfileListView,
UserProfilePostListView
)
fro
I am making a blog app for my django website. Right now i'm making a
comment feature, but when i try to view a post and the posts comments i get
an error.
*The Error*
[image: Udklip.PNG]
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
All good now!
Thanx!
Verstuurd vanaf mijn iPhone
> Op 4 sep. 2018 om 15:41 heeft RONAK JAIN het
> volgende geschreven:
>
> I think should be there cot's issues look like that you should right there:
>
>
>
>
> Thanks
> Ronak Jain
>
>> On Tue, Sep 4, 2018 at 6:44 PM Ravi Kiran Katukam
Hi Ravi,
On 04/09/2018 14.42, Ravi Kiran Katukam wrote:
any one developed kivy app for enterprise needs along with django web
need help
There might be someone here who has experience with that, but why not
ask for help in the appropriate mailing list. This seems to be the one:
https://gr
I think should be there cot's issues look like that you should right there:
Thanks
Ronak Jain
On Tue, Sep 4, 2018 at 6:44 PM Ravi Kiran Katukam
wrote:
> any one developed kivy app for enterprise needs along with django web
> need help
>
> On Tue, Sep 4, 2018 at 5:46 PM, Julio Biason
> wro
any one developed kivy app for enterprise needs along with django web
need help
On Tue, Sep 4, 2018 at 5:46 PM, Julio Biason wrote:
> Hey Tim,
>
> Are you sure your view is defined with spaces in the urls.py? Shouldn't it
> be {% url 'manifest' %} instead, with no spaces around the name?
>
> O
Hey Tim,
Are you sure your view is defined with spaces in the urls.py? Shouldn't it
be {% url 'manifest' %} instead, with no spaces around the name?
On Tue, Sep 4, 2018 at 6:28 AM, Tim Vogt (Tim Vogt)
wrote:
> I have made saleor local
>
> after restart I get this error
>
> Tried to change the “
I have made saleor local
after restart I get this error
Tried to change the “ “ into ‘ ‘ bout before it worked.
Any tips how to solve this?
Tim
NoReverseMatch at /en/
Reverse for ' manifest ' not found. ' manifest ' is not a valid view function
or pattern name.
Request Method: GET
Request URL
> def submit(request, laser_id):
>
> try:
> oLED = IoFLED()
> btnSubmit = request.POST['btnSubmit']
> laserid = request.POST['laser_id']
>
>
The other poster reminded me, you'll want to remove the laser_id reference
in your submit() signature
>
> The error I am getting now is:
>
>
>
>
> NoReverseMatch at / Reverse for 'submit' with arguments '()' and keyword
arguments '{}' not found. 0 pattern(s) tried:[u'$submit'/]
>
> And the following is highlighted in my index file:
>
>
>
>
> My code is below:
>
>
>
> iofppysite/iofppysite/url
El lunes, 4 de enero de 2016, Víctor Suárez
urlpatterns = [
url(r'^', views.index, name='index'),
url(r'^submit/(?P\d+)', views.submit, name='submit'),
]
Because you have
def submit(request, laser_id):
escribió:
> I don't see a namespace on url.py
>
>
>
https://docs.djangoproject.com/e
I don't see a namespace on url.py
https://docs.djangoproject.com/en/1.9/intro/tutorial03/#namespacing-url-names
On Monday, January 4, 2016 at 7:16:32 AM UTC-5, Robbie Sharma wrote:
>
> I have python and django loaded on my RaspberryPi that is wired to an LED
> array. The web app 'iofcontrol' in
I have python and django loaded on my RaspberryPi that is wired to an LED
array. The web app 'iofcontrol' in my Django project is supposed to
activate an animation sequence of a set of LEDs.
- iofppysite is the main project file
- iofppysite/iofcontrol is the LED control web app!
The
28 matches
Mail list logo