Re: Help passing the url

2020-04-06 Thread Luka Nik
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): >

Help passing the url

2020-04-06 Thread Luka Nik
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

Re: i am using database postgressql and after migrate my data is not displaying in the database

2020-03-27 Thread Luka Nik
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

Re: API Information for location tracking.

2020-03-21 Thread Luka Nik
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:

Re: Blog project help

2020-03-18 Thread Luka Nik
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: > >

Blog project help

2020-03-18 Thread Luka Nik
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,

Re: Running 2.7 python project with python 3.7

2020-02-13 Thread Luka Nik
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

Running 2.7 python project with python 3.7

2020-02-13 Thread Luka Nik
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

ImageField attributes

2019-06-18 Thread Luka Nik
[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

Re: Login problems

2019-06-10 Thread Luka Nik
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

Login problems

2019-06-10 Thread Luka Nik
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

Re: Django website help

2019-05-29 Thread Luka Nik
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

Django website help

2019-05-29 Thread Luka Nik
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