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
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
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
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
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
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
> 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
; 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
> *
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
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
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
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:
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
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
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
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
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
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
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:
>
> [
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
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
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
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
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
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
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
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
> 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
>
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
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>
>
>
>
&
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
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
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
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
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
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
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
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
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
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
/%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
(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
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
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
&
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
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):
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
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
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
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
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
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
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
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
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
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
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
...
{{ 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/
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
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
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
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
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
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
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
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:
>
> *
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
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:
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
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
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.
>
>
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
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()
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
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
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
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
77 matches
Mail list logo