Re: 'str' object is not callable

2020-09-23 Thread Avi shah
Try adding ''' as it can only take one string as parameter , ''' ''your message'' . '' your message 2 '' ''' On Wed, Sep 23, 2020 at 9:24 PM Salima Begum wrote: > Hi all, > > I am getting this error. May I know the reason why this error occurred? > > Here I attached two screenshots please

Re: Online food ordering system Django

2020-09-17 Thread Avi shah
Hey , Check out this repo https://github.com/yashjhaveri05/E-Food.git On Wed, Sep 16, 2020 at 8:38 PM Tanni Seriki wrote: > Please those any one has a project like online food ordering system... > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: Static not working on unix while working on windows

2020-07-08 Thread Avi shah
Hi Ashish , You saw what I sent ? On Wed, Jul 8, 2020, 9:55 PM ashish goyal wrote: > Hi ajeet, yes done collectstatic > > Sent from my iPhone > > On 08-Jul-2020, at 20:31, Ajeet Kumar Gupt > wrote: > >  > You tried to first run collectststic > > On Mon, Jul 6, 2020, 10:20 PM ashish goyal >

Re: Static not working on unix while working on windows

2020-07-07 Thread Avi shah
) mimetypes.add_type("text/javascript", ".js", True) And let me know if theres any error in django Thanks & Regards , Avi Shah (9167199744) > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

Re: Unable to import HTML code

2020-06-29 Thread Avi shah
t; >> Try adding this to your project's settings.py file (at the bottom): >> >> STATIC_URL = '/static/' >> STATICFILES_DIRS = ( >> os.path.join(BASE_DIR, "static"), >> ) >> >> On Saturday, 27 June 2020 16:55:22 UTC+1, Avi shah wrote: >

Unable to import HTML code

2020-06-27 Thread Avi shah
Hi my name is Avi Just finished a course from Udemy on django. Unable to import HTML and CSS to new project Pls guide me -- 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

Re: Unable to import HTML code

2020-06-27 Thread Avi shah
Even I am facing the same problem On Saturday, June 27, 2020 at 9:58:06 PM UTC+5:30, mohamed khaled wrote: > > What do you want exactly ? do you mean all static files do you want to > import it from old project to new project ?? > > On Sat, 27 Jun 2020 at 17:54, Avi shah > &

Re: Unable to import HTML code

2020-06-27 Thread Avi shah
I have developed a front end using bootstrap and different themes , and now I want to convert it into django html , I've loaded the static files and mentioned all the templates sec in my settings.py but for some reason my css is not being shown on the project even though it's been collected

Re: Unable to import HTML code

2020-06-27 Thread Avi shah
No, I have created 1 static website in html and now I want to import it in django new project -- 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

Re: Unable to import HTML code

2020-06-28 Thread Avi shah
I did everything , its still not showing up On Sunday, June 28, 2020 at 6:31:02 AM UTC+5:30, Ajish Gopinath wrote: > > Create view.py and url.py to include HTML page or template > > On Sat 27 Jun, 2020, 9:25 PM Avi shah, > > wrote: > >> Hi my name is Avi >> >

Re: Mysql Connect in Django

2020-07-20 Thread Avi shah
Watch this to solve your error https://www.youtube.com/watch?v=6SnE0r7g2lE On Mon, Jul 20, 2020 at 7:13 PM Ravindra Mogilipalem < ravindra.m...@gmail.com> wrote: > > When i install mysqlclient in Django so many errors are occured like > Running setup.py clean for mysqlclient > Failed to

Re:

2020-08-14 Thread Avi shah
Hello Suraj , Kindly send a your code for settings .py , urls.py and views.py so that we could resolve the issue On Fri, Aug 14, 2020 at 7:32 PM Suraj Kumar wrote: > Hi guys, > > I am to new django. > > I am making blog website project. During the making blog website I am > stuck one point for

Re: Date validation in javascript

2020-12-03 Thread Avi shah
Hi , Check this out https://www.youtube.com/watch?v=cBOyVNR2Seg On Thu, Dec 3, 2020 at 6:48 PM Eugene TUYIZERE wrote: > Dear Team, > > In my project, I have the date format MM. How to validate that the MM > part cannot exceed 12? I think this can be done in javascript but don't > know how.

Re: os module import error

2021-05-31 Thread Avi shah
you could just add "import os" in settings.py file On Mon, May 31, 2021 at 8:32 PM James Ndubuisi wrote: > Good afternoon. > It seems on creating the Django project using django-admin startproject > command , the os module isn't imported by default, causing an error. > > -- > You received this

Re: Role based Authentication

2021-07-07 Thread Avi shah
https://github.com/Avishah123/Multi-user-auth1 On Wed, Jul 7, 2021 at 8:16 PM DJANGO DEVELOPER wrote: > f > > On Wed, Jul 7, 2021 at 7:07 PM LokRaj Kumar Vuppu < > lokrajkumarvu...@gmail.com> wrote: > >> How to assign a role to user when registered into our application. >> >> -- >> You received

Re: Role based Authentication

2021-07-07 Thread Avi shah
you can normally do it using fbv's , just make sure while saving the model , you also save the user model also parallely with the student model(in reference with my repo) On Thu, Jul 8, 2021 at 7:44 AM DJANGO DEVELOPER wrote: > Avi Shah I have just visited your github repo. is there any ot

Re: django send defferent html message to defferent email address

2021-07-03 Thread Avi shah
You can use context or string concatenation to pass a specific type of user a specific message you can do it by and if statement where if request.user == admin : then the below code for it subject = 'Techela 6.0 Registration' from_email = settings.DEFAULT_FROM_EMAIL

Re: django send defferent html message to defferent email address

2021-07-03 Thread Avi shah
from django.conf import settings from django.core.mail import send_mail def valorant_view(request): if (valorant_registration.objects.count() <= 160): if request.method == 'POST': first_name = request.POST['first_name'] last_name = request.POST['last_name']

Re : Need help in django database related

2021-10-13 Thread Avi shah
I want to build an platform where admin can add events and I want end users to register for that event , so how do I save the data/registration of the user for that particular event , how can i create dynamic tables like 1 table for 1 event or is there some other logic behind it? Thanks in

Re : help in updating multiple objects in a single template

2021-07-16 Thread Avi shah
I have a query which returns multiple objects , so how to update those values in a single page , currently i am only getting one form with one object , I want all the objects and one submit button , please help Views.py [image: image.png] Form [image: image.png] Current form loook [image:

Help to implement join query in django orm

2022-07-22 Thread Avi shah
I have two tables Tbl 1 & Tbl 2 I need to connect the two tables using a join Thanks and regards, Avi shah -- 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,