Re: How to make recursive ManyToMany relationships through an intermediate model symmetrical

2020-10-16 Thread coolguy
With your example, you can also find the records through>>> ted.person_set.all(). On Friday, October 16, 2020 at 7:05:51 PM UTC-4 David Nugent wrote: > This is expected with your code. You've created an asymmetric > relationship from bill to ted, but not the reverse. This would be > appropri

Re: could you help me to solve this problem? ☹☹

2020-09-29 Thread coolguy
Please share the project directories... Need to see if you opened the main project and application correctly. On Tuesday, September 29, 2020 at 9:42:30 AM UTC-4 farisch...@student.president.ac.id wrote: > [image: Screenshot 2020-09-28 12.36.13.png] > -- You received this message because you a

Re: could you help me to solve this problem? ☹☹

2020-09-29 Thread coolguy
It seems you haven't changed your python interpreter...based on the screen shot the python is being executed from main python directory instead of virtual environment. On Tuesday, September 29, 2020 at 9:42:30 AM UTC-4 farisch...@student.president.ac.id wrote: > [image: Screenshot 2020-09-28 1

Re: Django admin page redirecting to some another page

2020-09-25 Thread coolguy
Please check if you have defined/changed LOGIN_URL settings in settings.py On Friday, September 25, 2020 at 2:51:23 PM UTC-4 deepra...@gmail.com wrote: > I go for super user login then it redirects to template which i made not > going to django admin login and django admin page, > > please sugge

Re: Django admin page redirecting to some another page

2020-09-25 Thread coolguy
Did you change LOGIN_REDIRECT_URL settings in settings.py? On Friday, September 25, 2020 at 2:51:23 PM UTC-4 deepra...@gmail.com wrote: > I go for super user login then it redirects to template which i made not > going to django admin login and django admin page, > > please suggest me any soluti

Re: Help me with the view please

2020-09-23 Thread coolguy
nd remaining fee, I have managed only to create the form, can > you help me with that > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Tuesday, September 22, 2020 6:10 PM > *To: *Django use

Re: Help me with the view please

2020-09-23 Thread coolguy
> tuition fee and remaining fee, I have managed only to create the form, can > you help me with that > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Tuesday, September 22, 2020 6:1

Re: Help me with the view please

2020-09-23 Thread coolguy
; tuition fee and remaining fee, I have managed only to create the form, can > you help me with that > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Tuesday, September 22, 2020 6:10 PM > *

Re: MultiValueDictKeyError at

2020-09-23 Thread coolguy
please share the views.py and template i.e. xxx.html. i'ts not possible to tell what's wrong with the provided information On Wednesday, September 23, 2020 at 11:43:36 AM UTC-4 luca72.b...@gmail.com wrote: > Hello i have this problem : > MultiValueDictKeyError at > The view is: > matricol

Re: ModelAdmin Not work

2020-09-23 Thread coolguy
either use admin.site.register OR *@*admin.register(User) On Wednesday, September 23, 2020 at 11:01:43 AM UTC-4 kkwaq...@gmail.com wrote: > *models.py* > > [image: 1.jpg] > > *admin.py* > > *[image: 2.jpg]* > > *errors* > > > *[image: 3.jpg]* > > *Object is not callable* > > *Please any body sol

Re: How can I filter django many to many models?

2020-09-22 Thread coolguy
in your line below you are using field named '*vendor_details*' which should be in User model... but i don't see it there... can you please check again seller_list = *User*.objects.select_related('*vendor_details*') On Tuesday, September 22, 2020 at 2:21:13 AM UTC-4 asadliv...@gmail.com wrot

Re: How can I filter django many to many models?

2020-09-22 Thread coolguy
in your line below you are using field named 'vendor_details' which should be in User mode... but i don't see it there... can you please check again seller_list = *User*.objects.select_related('*vendor_details*') On Tuesday, September 22, 2020 at 2:21:13 AM UTC-4 asadliv...@gmail.com wrote:

Re: Help me with the view please

2020-09-21 Thread coolguy
s one get_absolute_url method that you can use to reverse to student_detail view (if you have create one). We can later talk about how you are using views to generate your output... On Monday, September 21, 2020 at 2:58:14 PM UTC-4 dex9...@gmail.com wrote: > Hi @coolguy, thanks for your attachment

Re: Help me with the view please

2020-09-21 Thread coolguy
write me directly so i can respond fast... naseem.pyt...@gmail.com On Monday, September 21, 2020 at 2:58:14 PM UTC-4 dex9...@gmail.com wrote: > Hi @coolguy, thanks for your attachments, have created all the views and > templates, and I have been working on them for my new web app, for th

Re: Help me with the view please

2020-09-21 Thread coolguy
checkout my work for you on https://github.com/naseemfico/students On Monday, September 21, 2020 at 2:58:14 PM UTC-4 dex9...@gmail.com wrote: > Hi @coolguy, thanks for your attachments, have created all the views and > templates, and I have been working on them for my new web app, for th

Re: Help me with the view please

2020-09-21 Thread coolguy
yes you will... I left these for you... but definitely you can write me. On Monday, September 21, 2020 at 2:58:14 PM UTC-4 dex9...@gmail.com wrote: > Hi @coolguy, thanks for your attachments, have created all the views and > templates, and I have been working on them for my new web ap

Re: Help me with the view please

2020-09-21 Thread coolguy
yes you will... I left these for you... but definitely you can write me directly @ naseem.pyt...@gmail.com On Monday, September 21, 2020 at 2:58:14 PM UTC-4 dex9...@gmail.com wrote: > Hi @coolguy, thanks for your attachments, have created all the views and > templates, and I hav

Re: How to Add to Django Administration Using Code

2020-09-21 Thread coolguy
further to my previous comments please share the your related model code to make discussion interesting... On Sunday, September 20, 2020 at 11:35:05 AM UTC-4 Lightning Bit wrote: > Hi all, > > I am trying to figure out how to add "Customers" using code. Please look > at the administration layo

Re: How to Add to Django Administration Using Code

2020-09-21 Thread coolguy
do want to add the picture file to the customer application or want to see the picture in admin? On Sunday, September 20, 2020 at 11:35:05 AM UTC-4 Lightning Bit wrote: > Hi all, > > I am trying to figure out how to add "Customers" using code. Please look > at the administration layout: > > [

Re: Inline Formset

2020-09-19 Thread coolguy
Please share some code so we can look into. On Friday, September 18, 2020 at 12:50:49 AM UTC-4 lada...@gmail.com wrote: > Good day friends, Please i have a small challenge, I have an inline > formset in my admin where users can add more products to a store. The user > can also add a product if

Re: Calculated feild in models

2020-09-19 Thread coolguy
Create a function at class level like this.. *class xxx(models.Model):* quantity = models.FloatField() unit_price = models.FloatField() * def get_total_price(self):* return self.quantity * self.unit_price On Saturday, September 19, 2020 at 11:15:30 AM UTC-4 e

Re: how to create url helloworld

2020-09-19 Thread coolguy
Instead of from pages import views use from . import views On Saturday, September 19, 2020 at 11:15:34 AM UTC-4 leoa...@gmail.com wrote: > *file views.py in folder pages > > from django.htpp import HtppResponse > from django.shortcuts import render > > # Create your views here. > def home_vie

Re: TypeError: object() takes No Parameters

2020-09-17 Thread coolguy
e... On Thursday, September 17, 2020 at 4:00:08 PM UTC-4 pcar...@gmail.com wrote: > The actual trace coolguy is > > TypeError at /functions/ClassMonthlyCost/object() takes no > parametersRequest > Method: GETRequest > URL: http://98.8.61.133:8080/functions/ClassMonthlyCost/Djan

Re: TypeError: object() takes No Parameters

2020-09-17 Thread coolguy
is there any specific line number that message is pointing too. Can you share the actual error message and its trace... On Thursday, September 17, 2020 at 2:35:53 PM UTC-4 pcar...@gmail.com wrote: > Hello everyone, I am trying to utilize the SIngleTableMixin of > django_tables2 using a custom f

Re: FieldError regarding custom User model which overrides the default auth User model

2020-09-16 Thread coolguy
Could not go through all your attachments but just reviewed few line of your models.py... just my two cents... If you are going to use email for your login then USERNAME_FIELD should carry email not username... USERNAME_FIELD = 'email' On Wednesday, September 16, 2020 at 5:02:35 PM UTC-4 johnr

Re: Help me with the view please

2020-09-16 Thread coolguy
wrote: > Since model design is where I very much struggle, and I think my fee > management system models are not well design, so I need your help in > redesigning my models please > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Window

Re: How to calculate appreciation in django

2020-09-16 Thread coolguy
Did you setup the limits and maintenance dates in your asset models? If yes, then did you create any view that is available to designated user who can run that report to see what is due for maintenance and re-ordering. Please share more detail.. On Wednesday, September 16, 2020 at 12:03:56 PM U

Re: Help me with the view please

2020-09-16 Thread coolguy
> for > Windows 10 > > > > *From: *coolguy > *Sent: *Tuesday, September 15, 2020 10:57 PM > *To: *Django users > *Subject: *Re: Help me with the view please > > > > Isn't this 'paid_fee' used to record the quarterly/monthly payments from >

Re: HTML5 drag and drop: How does it really work?

2020-09-15 Thread coolguy
wrote: > Thanks Coolguy. Your answer is the first one getting close to what I am > looking for. I have a similar situation to the one you described. I > have 2 timeslots slot A and Slot B. Slot A might represent 10:00am on > 09/15 and slot B 11:00AM on 9/16. These slots have been c

Re: Help me with the view please

2020-09-15 Thread coolguy
self.completed = False > > > > *super*().save(*args, **kwargs) > > I have tried doing it like this, perhaps maybe you can see what I’m trying > to do > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> > > > &

Re: Environment Variables for Django Secret Key etc On Windows 10 and Heroku

2020-09-14 Thread coolguy
Did you input the variable value under single quote or without it? e.g. '' On Saturday, September 12, 2020 at 12:35:29 PM UTC-4 hanz...@gmail.com wrote: > Yes, I've seen so many tutorials. I did the same thing, and didn't work. > I believe there is something wrong with my Djang

Re: HTML5 drag and drop: How does it really work?

2020-09-14 Thread coolguy
The changes are done through script which you are doing at this time... the changes would only be visual for user and would not impact the source code. following may be irrelevant for you but i would add this here... Lets take an example of an online-course where instructor of the course can mak

Re: HTML5 drag and drop: How does it really work?

2020-09-14 Thread coolguy
The changes are done through script which you are doing at this time... the changes would only be visual for user and would not impact the source code. following may be irrelevant for you but i would added this here... Lets take an example of an online-course where instructor of the course can m

Re: Change DateField Like this

2020-09-14 Thread coolguy
please explain in detail where do you want this change views? On Monday, September 14, 2020 at 3:56:37 PM UTC-4 kkwaq...@gmail.com wrote: > How to change date format in django (mmdd to ddmm) > -- You received this message because you are subscribed to the Google Groups "Django use

Re: Help me with the view please

2020-09-14 Thread coolguy
ol_fees = first_record.school_fees > > paid_fees = student.fee_set.aggregate(total_paid_fees=Sum('paid_fees')) > >balance_fees = school_fees - paid_fees["total_paid_fees"] > > > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId

Re: I am getting this error while I click on comment button which i mention in line 51 in html file.

2020-09-14 Thread coolguy
etting error.[image: 8.PNG][image: 10.PNG][image: 13.PNG][image: > 12.PNG] > > On Saturday, September 12, 2020 at 9:59:16 PM UTC+5:30 coolguy wrote: > >> Can't see the line number in your provided screens. >> However, i can see you have additional id id={{ i.id }}add

Re: Help me with the view please

2020-09-14 Thread coolguy
t; Thank you brother @coolguy, I have put to work your latest solution and > it has worked like a charm.I have been learning a lot from you lately, as > you know i am still a beginner, i would love to learn one more thing from > you..i have a boolean field "completed", and i w

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-14 Thread coolguy
in any way. > > Dana nedjelja, 13. rujna 2020. u 18:11:18 UTC+2 korisnik coolguy napisao > je: > >> not sure about the purpose of showing that example in Django >> documentation while its comments are clear that "object will not have been >> saved to the database

Re: Help me with the view please

2020-09-14 Thread coolguy
leted = True super().save(*args, **kwargs) On Monday, September 14, 2020 at 7:11:51 AM UTC-4 dex9...@gmail.com wrote: > Thank you brother @coolguy, I have put to work your latest solution and > it has worked like a charm.I have been learning a lot from you lately, as > you kno

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-13 Thread coolguy
On Sunday, September 13, 2020 at 5:41:18 AM UTC-4 mislav@gmail.com wrote: > Hey coolguy, > > thanks for responding. After I changed that line as you suggested that > error is solved, *but when I add the user through the admin interface, I > get None as the ID* (the folder that

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-13 Thread coolguy
/%m/%d/', blank=True) On Sunday, September 13, 2020 at 5:41:18 AM UTC-4 mislav@gmail.com wrote: > Hey coolguy, > > thanks for responding. After I changed that line as you suggested that > error is solved, *but when I add the user through the admin interface, I > get No

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-12 Thread coolguy
(instance.user.id, extension) change it as follow and remove user from it. return "employees/media/users/{0}/profile_picture.{1}".format(instance.id <http://instance.user.id/>, extension) It should work... On Saturday, September 12, 2020 at 3:17:28 PM UTC-4 mislav@gmai

Re: help me it shows error.

2020-09-12 Thread coolguy
change post:pk to i.id also fix line and delete id={{ i.id }} On Saturday, September 12, 2020 at 2:54:16 PM UTC-4 yashlan...@gmail.com wrote: > [image: 5.PNG] > [image: 8.PNG] > [image: 9.PNG] > [image: 10.PNG] > -- You received this message because you are subscribed to the Google Groups "D

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread coolguy
Keep this handy as well... https://docs.djangoproject.com/en/3.1/ref/migration-operations/#addfield On Saturday, September 12, 2020 at 1:43:37 PM UTC-4 mislav@gmail.com wrote: > A question to coolguy: > > *What should I have done if I selected option 1?* I get the Python shell &

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread coolguy
Interesting... did you try the email with quotes or without it On Saturday, September 12, 2020 at 1:43:37 PM UTC-4 mislav@gmail.com wrote: > A question to coolguy: > > *What should I have done if I selected option 1?* I get the Python shell > and if I input a default value

Re: AttributeError: object has no attribute 'user' while trying to access instance.user.id

2020-09-12 Thread coolguy
Please share the complete employee model. It seems you are missing User foreign key in it. On Saturday, September 12, 2020 at 2:03:20 PM UTC-4 mislav@gmail.com wrote: > Hey guys, > > I have the following code in models.py file in one of my apps: > > def get_upload_path(instance, filename):

Re: Help with payment processing in django

2020-09-12 Thread coolguy
Buddy... did you design your project or you want us to design it for you... did you create models, views... On Friday, September 11, 2020 at 6:52:31 AM UTC-4 shyam.ac...@gmail.com wrote: > > Hi guys, I am working on a project which offers contents and every > content has a different price. i

Re: I am getting this error while I mention all syntax properly.plz help me out.

2020-09-12 Thread coolguy
Please provide the template screen shot since error is generated from there... also send separate screen so its viewable. On Saturday, September 12, 2020 at 4:35:10 AM UTC-4 yashlan...@gmail.com wrote: > [image: 5.PNG] > [image: 6.PNG] > [image: 7.PNG] > [image: 8.PNG] > -- You received thi

Re: I am getting this error while I mention all syntax properly.plz help me out.

2020-09-12 Thread coolguy
Please provide the template screen shot since error is generated from there... also send separate screen so i viewable. On Saturday, September 12, 2020 at 4:35:10 AM UTC-4 yashlan...@gmail.com wrote: > [image: 5.PNG] > [image: 6.PNG] > [image: 7.PNG] > [image: 8.PNG] > -- You received this me

Re: I am getting this error while I click on comment button which i mention in line 51 in html file.

2020-09-12 Thread coolguy
Can't see the line number in your provided screens. However, i can see you have additional id id={{ i.id }}added to your button line. (remove it) You have already provided the id in href="{% url 'userpage:post_detail' i.id %}" attribute. On Saturday, September 12, 2020 at 4:34:10 AM UTC-4 yashla

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread coolguy
just FYI... You didn't have to delete the db.sqllite3 file rather would have followed on-screen direction and provided a default value to persist in the existing records in your database. Later you could have edited the info through your program and make correction. This is pretty normal situa

Re: Help me with the view please

2020-09-11 Thread coolguy
ining fees: {{ balance_fees }} Output: Student name: student1 School fees: 10.0 Paid fees: 35000.0 Remaining fees: 65000.0 On Friday, September 11, 2020 at 5:25:28 AM UTC-4 dex9...@gmail.com wrote: > Sorry for bothering you @coolguy, you’re the only person who see

Re: Help me with the view please

2020-09-10 Thread coolguy
y, September 10, 2020 at 2:16:27 PM UTC-4 dex9...@gmail.com wrote: > Thanks for helping me @coolguy,but it seems I ran into another problem, > the school fees and remaining fees somehow sums together, I want students > to pay school fees in phases, i.e, first quarter, second etc, and I want

Re: Help me with the view please

2020-09-10 Thread coolguy
Can you please share the template you are using. You can send another context variable for remaining fee. On Thursday, September 10, 2020 at 2:16:27 PM UTC-4 dex9...@gmail.com wrote: > Thanks for helping me @coolguy,but it seems I ran into another problem, > the school fees and remainin

Re: Help me with the view please

2020-09-10 Thread coolguy
er context variable from your view. On Thursday, September 10, 2020 at 2:16:27 PM UTC-4 dex9...@gmail.com wrote: > Thanks for helping me @coolguy,but it seems I ran into another problem, > the school fees and remaining fees somehow sums together, I want students > to pay school fee

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread coolguy
ideos, but didn't work. > Do you have any references for easy way creating django sitemap for blog > posts? > Sure it would help. > > Thanks > > > > On Wed, Sep 9, 2020 at 12:02 AM coolguy wrote: > >> Not sure why you are importing this into your main

Re: Help me with the view please

2020-09-08 Thread coolguy
in students %} {{ student.name }}: {{ student.get_remaining_fee }} {% endfor %} On Tuesday, September 8, 2020 at 1:35:56 PM UTC-4 dex9...@gmail.com wrote: > Thank you for your help @coolguy..but my real problem lies in writing the > code for “fee_remaining

Re: Help me with the view please

2020-09-08 Thread coolguy
... {{ student.get_remaining_fee }} On Tuesday, September 8, 2020 at 1:35:56 PM UTC-4 dex9...@gmail.com wrote: > Thank you for your help @coolguy..but my real problem lies in writing the > code for “fee_remaining”, can you help me with that also..thanks > > > > Sent from Mail <https://go.microsoft.com/

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread coolguy
Not sure why you are importing this into your main project urls.py but its very straight forward from blog.sitemaps import BlogPostsSitemap question... are you trying to map the application url here? then you should use path('/' , Include("blog.urls")) On Tuesday, September 8, 2020 at 4

Re: Help me with the view please

2020-09-08 Thread coolguy
In your return line of code, you are referring to context variable but I don't see you assigned any value to this context variable in your code. Or if you want to send three variables i.e. "fees", "total_fees" and "fee_remaining"... you need to send them separately like return render(request, 'w

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread coolguy
You can't have the same name twice. You need to change the name for one of the followings: path('customsearch/', views.search, name='search'), path('customsearch//', views.search, name='search_xxx') Reverse method requires a url identified by name parameter which must be unique. Its look

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread coolguy
You can't have the same name twice. You need to change the name for one of the followings: path('customsearch/', views.search, name='search'), path('customsearch//', views.search, name='search_xxx') On Friday, August 28, 2020 at 7:06:09 PM UTC-4 pcar...@gmail.com wrote: > Hello All! I n

Re: syntax error while trying to run '$ django-admin startproject mysite' command on command terminal

2020-08-17 Thread coolguy
Hi Mike, since you didn't mention the exact error... just make sure you activated virtual environment and installed django in the directory you are in... On Sunday, August 16, 2020 at 4:17:56 PM UTC-4, Michael O wrote: > > hello, i cd into the directory by cd\ to start a project and was welcomed

Re:

2020-08-17 Thread coolguy
Send us the project folder screen shot where we can see the app folder and its sub folders. Also send us the screen shot of your view.py and urls.py On Friday, August 14, 2020 at 10:02:39 AM UTC-4, Suraj Kumar wrote: > > Hi guys, > > I am to new django. > > I am making blog website project. Durin

Re: 'str' object has no attribute '_meta'

2020-08-02 Thread coolguy
please provide some details. It's pretty vague at this time. On Sunday, August 2, 2020 at 6:12:33 PM UTC-4, Giovanni Silva wrote: > > > > -- > *Giovanni Silva* > (31) 9 9532-1877 > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: static folder does not work

2020-07-30 Thread coolguy
Does it work to change the background of your page? or its not working with regards to bootstrap.css... Also check if you've accidentally commented out The 'django.contrib.staticfiles' in settings.py under INSTALLED_APP On Thursday, July 30, 2020 at 9:37:23 AM UTC-4, waqar khan wrote: > > *

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread coolguy
By default, Django checks for the CSRF token in all POST requests. Remember to include the csrf_token tag in all forms that are submitted via POST. Place csrf_token within form tag... e.g. {% csrf_token%} tag On Wednesday, July 29, 2020 at 9:57:41 PM UTC-4, Christian Seberino wrote: > > Her

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread coolguy
By default, Django checks for the CSRF token in all POST requests. Remember to include the csrf_token tag in all forms that are submitted via POST. Please place csrf_token in tag. You have placed it outside of form tag. On Wednesday, July 29, 2020 at 9:57:41 PM UTC-4, Christian Seberino wrote:

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread coolguy
t 5:29:53 PM UTC-5, coolguy wrote: >> >> Tired your link for the form. If this is the form you are concerned about >> then the message that pops up is for validation i.e. form.is_valid(). >> > > Did you see the CSRF error I got?. Here is a pic > https://imgur.com/a

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread coolguy
0 at 5:29:53 PM UTC-5, coolguy wrote: >> >> Tired your link for the form. If this is the form you are concerned about >> then the message that pops up is for validation i.e. form.is_valid(). >> > > Did you see the CSRF error I got?. Here is a pic > https://img

Re: How to create a link between Posts List View and Items List View of the same User

2020-07-29 Thread coolguy
Please share the project directory structure. Send a screen shot or write it. Tnx On Tuesday, July 28, 2020 at 11:14:14 PM UTC-4, Ahmed Khairy wrote: > > I am creating a project where there are Posts and Items, 2 different > models in 2 different apps and each has a user who can be the same. > >

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread coolguy
Tired your link for the form. If this is the form you are concerned about then the message that pops up is for validation i.e. form.is_valid(). On Wednesday, July 29, 2020 at 4:55:33 PM UTC-4, Christian Seberino wrote: > > I have a Django app with multiple forms on various pages. They all work

Re: want to take input of datetimefield from my template

2020-07-13 Thread coolguy
Please share your model, view and template for more clarity. Thanks On Sunday, July 12, 2020 at 9:25:16 AM UTC-4, Chander shekhar wrote: > > > On Sun, Jul 12, 2020, 6:37 PM Kasper Laudrup > wrote: > >> On July 12, 2020 3:02:00 PM GMT+02:00, Chander shekhar > > wrote: >> >starttime=datetimefield()

Re: Django how get Post details using slug

2020-07-03 Thread coolguy
2020, 9:49 PM Tanni Seriki > wrote: > >> Sir here it's all the project, currently my phone camera has fault please >> help me out. >> >> On Fri, Jul 3, 2020, 9:23 PM coolguy > > wrote: >> >>> I am away at this time but can you send the pr

Re: Django how get Post details using slug

2020-07-03 Thread coolguy
the project, currently my phone camera has fault please >> help me out. >> >> On Fri, Jul 3, 2020, 9:23 PM coolguy > > wrote: >> >>> I am away at this time but can you send the project urls.py screen shot >>> as well. >>> >>> On Friday, J

Re: Django how get Post details using slug

2020-07-03 Thread coolguy
ni Seriki > wrote: > >> Coolguy >> Please can we chat on WhatsApp... >> The post details is really giving me headache, please help out >> >> On Fri, Jul 3, 2020, 9:04 PM coolguy > > wrote: >> >>> Seems pretty simple unless you have specific questio

Re: Django how get Post details using slug

2020-07-03 Thread coolguy
Seems pretty simple unless you have specific question about something. You have a model which has some fields including Slug field which should be unique i.e. unique=True but your screen shot is not clear.. In views you are overriding the get_queryset() method of base class and assigning it to