Reatime news feed in Django

2019-10-25 Thread Uzama Zaid Mohammed Jaward
Hi all, Is syndication feed framework in Django doc is good in production for real time news feeds system ? -- 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 djan

Re: Database ORM query Help

2019-10-25 Thread wd
I think you could consider using raw sql, https://docs.djangoproject.com/en/2.2/topics/db/sql/#executing-custom-sql-directly On Fri, Oct 25, 2019 at 7:56 PM Cheda me wrote: > Hey guys, > > I have worked out the SQL query I would like to implement but am currently > struggling to create the Djang

Re: Query regarding Jija templates with django project

2019-10-25 Thread red
Hello, Your views have a 'name' attribute. You can also give a name to an app in the urls.py file of the app, right above your urlpatterns list: app_name = "myappname" urlpatterns = [ path('', views.index, name='index'), path('about', views.about, name='about'), path('blog', views.blog, nam

Query regarding Jija templates with django project

2019-10-25 Thread 'Amitesh Sahay' via Django users
Hello Team, I am kind of new to software development, and trying to find my feat. I have a queries which could be quite dumb to most of you, but I need to know. As far as I know, we need Jija templates in the HTML files, so that we can assign correct path of the static files. Its a general p

Re: to make a wish list .

2019-10-25 Thread Shubham Mishra
actually i didn't wrote wishlist models. On Fri, Oct 25, 2019 at 10:16 PM Shubham Mishra wrote: > from django.db import models > > # Create your models here. > class Item(models.Model): > Name_Item = models.CharField(max_length=20) > Date = models.DateField() > > > On Fri, Oct 25, 2019 a

Re: to make a wish list .

2019-10-25 Thread Shubham Mishra
from django.db import models # Create your models here. class Item(models.Model): Name_Item = models.CharField(max_length=20) Date = models.DateField() On Fri, Oct 25, 2019 at 9:46 PM Tosin Ayoola wrote: > I could share u the link to the github repo for the project if you need it > > O

Re: to make a wish list .

2019-10-25 Thread Tosin Ayoola
I could share u the link to the github repo for the project if you need it On Oct 25, 2019 5:14 PM, "Tosin Ayoola" wrote: > Ohk cool I've done something similar to this, but mine is a to-do list, > so the way I did my is I used a model and a Modelform the form ask the > user to enter the lists

Re: Database ORM query Help

2019-10-25 Thread Samiul Sk
Please post the code of Model and explain what do you want as Queryset? On Fri, 25 Oct 2019 at 17:26, Cheda me wrote: > Hey guys, > > I have worked out the SQL query I would like to implement but am currently > struggling to create the Django query. I have been attempting to use the > .aggregat

Re: to make a wish list .

2019-10-25 Thread Samiul Sk
where is your wishlist model? On Fri, 25 Oct 2019 at 19:41, Shubham Mishra wrote: > thank you , > But I'm not getting the actual logic , I tried so many times but it didn't > work , so if you suggest me with some code . this will help me a lot . and > also to get this internship. > > On Fri, O

Re: to make a wish list .

2019-10-25 Thread Tosin Ayoola
Ohk cool I've done something similar to this, but mine is a to-do list, so the way I did my is I used a model and a Modelform the form ask the user to enter the lists and details of goals they want to achieve in a day, then, in the view.py I check if the information entered is valid and cleaned

Re: to make a wish list .

2019-10-25 Thread Shubham Mishra
thank you , But I'm not getting the actual logic , I tried so many times but it didn't work , so if you suggest me with some code . this will help me a lot . and also to get this internship. On Fri, Oct 25, 2019, 17:36 Lutalo Bbosa joseph wrote: > I havent written this yet but, think this works

Re: to make a wish list .

2019-10-25 Thread Lutalo Bbosa joseph
I havent written this yet but, think this works use a list, after clicking the button append the task to the list then call the list in context to display all the items in the html template. try this and give me afeed back. On Fri, Oct 25, 2019 at 2:56 PM Shubham Mishra wrote: > hello, > I am S

Re: Expire Password Reset Link

2019-10-25 Thread Percival Rapha
I use django.core.signing.Signer...usually i store identifiers and a timestamp which will be checked upon a request. You should check it out! On Wednesday, October 23, 2019 at 3:06:17 PM UTC+2, prabhakaran karthikeyan wrote: > > If an user requests a password reset link, clicking on it will make

Database ORM query Help

2019-10-25 Thread Cheda me
Hey guys, I have worked out the SQL query I would like to implement but am currently struggling to create the Django query. I have been attempting to use the .aggregate() & Max() methods but cant seem to get the right result. Any help is much appropriated. SELECT temp.* FROM item_detail temp I

Is a bug when renaming a model which has a Foreign Key?

2019-10-25 Thread Luis Antonio Chapado Chorro
I want to rename a model. >From "BaseSpaceLibraryName" to "LibraryKit" class *LibraryKit* (models.Model): libraryName = models.CharField(max_length=125) generatedat = models.DateTimeField(auto_now_add=True) class Projects(models.Model): LibraryKit_id = models.ForeignKey(

to make a wish list .

2019-10-25 Thread Shubham Mishra
hello, I am Surendra Mishra , I am student currently i'm learning django. I applied for internship , but they gave me a task if i complete then they will consider me . please help me to complete this task. mostly i have done but in the last section im fighting but i not getting exact thing .

Re: How to retrieve data from different related model (This post was posted earlier on but was deleted due code not being clear)

2019-10-25 Thread Benedict Uwazie
Thanks for ur reply, how do I implement it? I tried it but it did not work. On Friday, 25 October 2019 03:05:50 UTC+1, Suraj Thapa FC wrote: > > Try select_related() > > On Fri, 25 Oct, 2019, 1:15 AM Gil Obradors, > wrote: > >> What field of Category you want to get from post model ? name? >> ma

Re: How to retrieve data from different related model (This post was posted earlier on but was deleted due code not being clear)

2019-10-25 Thread Benedict Uwazie
Thank you very much but it did not work On Thursday, 24 October 2019 20:45:41 UTC+1, Gil Obradors wrote: > > What field of Category you want to get from post model ? name? > maybe k.category instead of k.name? ( template) > > Or explain better :P > > > Missatge de Benedict Uwazie > del dia > dj.,