How do I pass it exactly?
On Mon, 6 Apr 2020, 9:41 pm ola neat, wrote:
> You need to add the id as argument in the function
>
> On Mon, Apr 6, 2020, 19:17 Luka Nik wrote:
>
>> How can I alter this post_detail function:
>>
>>
>> def post_detail(request):
>
How can I alter this post_detail function:
def post_detail(request):
post = get_object_or_404(Post)
comments = post.comments.filter(active=True)
new_comment = None
if request.method == 'POST':
comment_form = CommentForm(data=request.POST)
if
You should provide some more info.
You could be messing your models.py file if the database contains no data.
Or it's just frontend problems
On Fri, 27 Mar 2020, 9:10 pm Jyotika Berry, wrote:
> hi all ,
> I am new to Django so created a small application to understand the flow ..
> till now
Only native apps can send location in background, otherwise google maps are
ok
On Sat, 21 Mar 2020, 4:13 pm RAJANI GUPTA, wrote:
> I think by using Googal map.
>
> Sent from my Huawei phone
>
>
> Original message
> From: Mehul Anshumali
> Date: Sat, 21 Mar 2020, 7:53 pm
> To:
Yes, I used that, but it's not working for me.
Actually I combined two projects, but, I think my blog/post-detail is not
working
On Wed, Mar 18, 2020 at 6:00 PM Python Programming
wrote:
> Hello my friend this site is for you:
>
>
Hello fellow djangos,
I have a slight problem with my project, a simple solution is needed I
believe, but I couldn't figure it out.
I wanted to add a comment section for my blog posts.
Here is the code:
Models.py:
class Comment(models.Model):
post = models.ForeignKey(Post,
Thank you very much.
Yeah, I overlooked that this is only django. My bad
Luka
On Thu, Feb 13, 2020 at 11:04 AM Kasper Laudrup
wrote:
> Hi Luka,
>
> On 13/02/2020 10.53, Luka Nik wrote:
> > Is there a way to run a project with python 3.7 if it's written with
> > python 2.7
Is there a way to run a project with python 3.7 if it's written with python
2.7?
And what are my options if not?
Cheers,
Luka
--
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
[image: gesk1.png]
Can someone help me with this?
I am trying to resize profile photo for my web app, but the function is not
working.
It tried with both self.image.url and self.image.path - I guess that is why
it is not working(unresolved attribute reference), but in the django
documentation for
Yeah, worked perfectly. Cheers
On Mon, 10 Jun 2019, 3:57 pm Abhishek Anvekar,
wrote:
> Create a new superuser n try
>
> On Mon 10 Jun, 2019, 6:02 PM Luka Nik, wrote:
>
>> I can't login into my django admin. I created superuser, but django can't
>> seem to recogn
I can't login into my django admin. I created superuser, but django can't
seem to recognize it. I tried to login, but it says the username or
password is incorrect. I checked password through chrome settings, so that
is ok. But username remains blank, and can't see any recognize any through
python
Found my mistake. Didn't run server from the appropriate location.
Thanks anyway
On Wed, 29 May 2019, 4:27 pm salimon jamiu olashile, <
tunedae1shi...@gmail.com> wrote:
> Can you share more details about the problem? Screenshot or trace back
> anything
>
> On Wed, 29 May 201
I can't build my Django website for some reason and I can't figure out why.
Do you have any ideas what should I do?
Default Django site worked, but when I added another route, the site
couldn't be reached.
Any help would be appreciated.
--
You received this message because you are subscribed to
13 matches
Mail list logo