Re: Django FastCGI and static files

2019-09-28 Thread Sipum
Block or mark as spam. I think it will work. Give it a try On Sat, 28 Sep, 2019, 7:30 PM Anike Sadia, wrote: > Hi pls how to leave this group > > > On Tue, 17 Sep 2019 at 17:16, Martin Jaan Leesment > wrote: > >> Hey >> >> I'm new to serving Django website on a shared server as well as using

Re: convert python 3 to python2

2019-09-21 Thread Sipum
Hi Ankita, In coming January, python 2 is going to retire. So better to use python 3. Thanks On Sat, 21 Sep, 2019, 11:02 PM Ankita Gupta, wrote: > Not related to Django, I have a project made in python3 but due to some > package installation, i need to convert my project to python2. Is there

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Sipum
I m in India? > > > Thank you > Regards > Preetham > > On Wed, Sep 18, 2019 at 8:05 AM Sipum wrote: > >> Hi Raju, >> >> I m interested but can remote possible as currently I m in India? >> >> Thank you >> Regards >> Sipum >> &g

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-17 Thread Sipum
Hi Raju, I m interested but can remote possible as currently I m in India? Thank you Regards Sipum On Wed, 18 Sep, 2019, 2:06 AM Raju N Somanna, wrote: > Hi All > > I've an immediate need for Backend Developers (*Python/Django ORM* - New > York City) with my client in NYC.

Re: President of India: Save Nallamala Forest from Uranium Mining @rashtrapatibhvn @TelanganaCMO

2019-09-14 Thread Sipum
What the fuck is going on.. Here it is not the place to sign petition. It is to django doubt clearing group where one helps other to help. Shame on you guys. U arw fucking kids spamming it. On Sat, 14 Sep, 2019, 1:25 PM , wrote: > Bonjour, > Je viens de signer la pétition "President of India:

Re: migrate error

2019-09-09 Thread Sipum
Show the code where u have used datetime.datetime. Whenever u are asking something, its better to show code where the error is arised. So it will be easy for others to find the error otherwise no one will answer ur question bro. On Tue, 10 Sep, 2019, 8:14 AM Pradeep Singh, wrote: > I didnot

Re: page not found but url exists

2019-08-26 Thread Sipum
Hey, Try by giving forward slashes(/) at the end of the each urls instead of using backward slashes like... Do as - register/ login/customer/ I think It will work On Tue, 27 Aug, 2019, 3:16 AM James Schneider, wrote: > > > >> Using the URLconf defined in bnt.urls, Django tried these URL

Re: Get queryset outside models.py

2019-08-23 Thread Sipum
What error you are getting cannu post it here with your code for model manager. On Sat, 24 Aug, 2019, 2:20 AM Ezequias Rocha, wrote: > Hi everyone > > I would like to know if it is possible to retrieve *models*.mymodel > instance from outside the models.py to retrieve a queryset. > > I want to

Re: Django sql raw query to queryset

2019-08-23 Thread Sipum
You can use Queryset like - course_review_report.objects.select_related('courses') On Fri, 23 Aug, 2019, 11:07 AM Suraj Thapa FC, wrote: > SELECT * > FROM course_review_report LEFT JOIN courses ON course_review_report.cid = > courses.cid > > > Can anyone pls write the querryset for the above

Re: Regarding to suggestion for registration page

2019-08-21 Thread Sipum
Can u plz tell what you have done so we can learn also. On Thu, 22 Aug, 2019, 11:16 AM RONAK JAIN, wrote: > Thank you so much all of you for your kind of help. > > > I have done this Task. > > > Thanks > > > > > > On Thu, Aug 22, 2019 at 10:21 AM Sipum

Re: Regarding to suggestion for registration page

2019-08-21 Thread Sipum
; >> >> Thanks >> >> On Wed, Aug 21, 2019 at 12:23 PM Tosin Ayoola >> wrote: >> >> Using httpRedirect to d view 4 the URL u want user to b redirected to >> >> On Aug 21, 2019 06:21, "RONAK JAIN" wrote: >> >> I am try

Re: Regarding to suggestion for registration page

2019-08-19 Thread Sipum
Hey Ronit, It is very simple. Just do return redirect ('/name used in url') If ur url for home page be like, path('home', views.index, name='home') Then u hv to write as redirect('/home'). On Tue, 20 Aug, 2019, 9:43 AM Ronit Mishra, wrote: > Hi, > > If I've understood your issue correctly,

Re: dlango MultiValueDictKeyError

2019-08-05 Thread Sipum Mishra
Hey Ajit, This error comes when You are trying to get username, passwords from the form. It is due to the below reason - In Login, You are using -> request.POST['username'] which will raise a KeyError exception if 'username' is not in request.POST. Instead use -> request.POST.get('username')

Re: trying to use a variable inside a static content tag

2019-07-27 Thread Sipum Mishra
Hi Lyman, PFB. Configure the following setting in your setting.py STATIC_ROOT = os.path.join(BASE_DIR,"static_files") STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, "static"),) load *staticfiles* tag to template {% load staticfiles %} and then use in *src* attribute

Re: Get Value of Drop Down

2019-06-26 Thread Sipum Mishra
Hello csn u plz share ur codes as well as errors. On Thu, 27 Jun, 2019, 12:09 AM Aayush Bhattarai, < bhattaraiaayus...@gmail.com> wrote: > Hi, > I have encountered a problem. How can I get the value of dropdown, > Boolean Field and send it to the database. Note: I am not using forms.py > files

Re: invalid literal for int() with base 10: 'admin'

2019-06-26 Thread Sipum Mishra
Your problem is, in url you are passing id to detailview, but in views.py you have done anything with that... Check this again. On Wed, 26 Jun, 2019, 4:01 AM onyilimba martins mclaren tochukwu, < tochimcla...@gmail.com> wrote: > I guess it's Django 2.2? > > -- > You received this message

Re: invalid literal for int() with base 10: 'admin'

2019-06-25 Thread Sipum Mishra
s() > urlpatterns += static(settings.MEDIA_URL, document_root > =settings.MEDIA_ROOT) > > On Tuesday, June 25, 2019 at 4:14:05 PM UTC+5:30, Sipum wrote: >> >> Can u plz attach your urls.py as functions associated in views.py >> >> Thanks. >> >> On Mo

Re: invalid literal for int() with base 10: 'admin'

2019-06-25 Thread Sipum Mishra
Can u plz attach your urls.py as functions associated in views.py Thanks. On Mon, 24 Jun, 2019, 8:08 PM Harshit Agarwal, wrote: > Hi guys, > I am currently working on a working on a project. Everything is working > fine but i am not able to access my admin. How can i solve this? > Here is my

Re: action in a form

2019-06-24 Thread Sipum Mishra
have any effect for saving data. > > Greetings > bengoshi > > > Am Sonntag, 23. Juni 2019 19:31:05 UTC+2 schrieb Sipum: >> >> Hello, >> >> In action use the url associated with that view then it will work for >> you. >> If not then kindly tell what

Re: action in a form

2019-06-23 Thread Sipum Mishra
Hello, In action use the url associated with that view then it will work for you. If not then kindly tell what errors you are getting. Thanks. On Sun, 23 Jun, 2019, 10:17 PM Sebastian Jung, wrote: > Hello, > > You must Put in Action not a Name from a function. You must Put a url dir > example

Re: Wrong Redirect

2019-06-20 Thread Sipum Mishra
Hi Ramadhan, Instead of rendering to any page please use HttpResponseRedirect('put home page url where u want to redirect' ). And also import django.http import HttpResponseRedirect Do the above & let me know. I hope it will work. On Thu, 20 Jun, 2019, 2:41 PM ramadhan ngallen, wrote: >

Re: ManyToMany no Model

2019-06-19 Thread Sipum Mishra
Ggt yano jika teme sulo faso tadan siku. Lhggg On Wed, 19 Jun, 2019, 5:55 PM Christian Oliveira, < christianoliveir...@gmail.com> wrote: > Bom dia, como posso fazer para acessar os dados de uma tabela derivada de > um ManyToMany?? > > -- > You received this message because you are subscribed to

Re: Django App - Database connection

2019-06-14 Thread Sipum Mishra
Hi sapna, Check your settings.py file and search for DATABASE there you can get a link which is commented. Copy n paste that url and that will take you to documentation page where you can get what needs to be imported in DATABASE. On Fri, 14 Jun, 2019, 4:45 PM Sapna Dhage, wrote: > > Hello, >

Re: Django question.

2019-06-09 Thread Sipum Mishra
Hi Bhaskar, You can write your helper functions inside utils.py and can use it wherever you want. And basically utils.py contains utility functions or helper functions. Thanks. On Sun, 9 Jun, 2019, 2:29 AM Bhashkar Bisht, wrote: > HI there is there any best way to create django helper class

Re: Name error

2019-06-05 Thread Sipum Mishra
Plz show your code otherwise search your total error line in Google you can find it. Always try to paste error codes so that it will b easy to find out error. Thanks. On Wed, 5 Jun, 2019, 3:12 PM RAJA MISHRA, wrote: > Name error : name 'django' is not defined in one of my app > Plzz anyone

Re:

2019-06-04 Thread Sipum Mishra
Hi Pradeep, You are using a non nullable field image. And for that you have to provide a default value. Without default value it is unable find. On Tue, 4 Jun, 2019, 9:12 PM Pradeep Singh, wrote: > why i am getting these error ..please help me to fix it > > thanks in advance > > -- > You

Re: Customising django user model

2019-05-20 Thread Sipum Mishra
tractUser >> >> class CustomUser(AbstractUser): >>age = models.PositiveIntegerField(null=True, blank=True) >> >> >> On Sunday, May 19, 2019 at 12:13:08 PM UTC-5, Sipum wrote: >>> >>> Hello Friends, >>> >>> I want to customise django default user tab

Re: Customising django user model

2019-05-20 Thread Sipum Mishra
Ok thanks for reply. On Mon, 20 May, 2019, 5:36 PM Rafael E. Ferrero, wrote: > Hello, you must to extend User model... search on google with this > aproach!! > > Cheers! > > Rafael E. Ferrero > > > El dom., 19 may. 2019 a las 14:13, Sipum () escribió: >

Customising django user model

2019-05-19 Thread Sipum
Hello Friends, I want to customise django default user table and which should consist of name,phone, email and gender. And after that when every time a user logs in, he/she should able to log in through an OTP to phone or email. can anyone guide me What to do here.?? Thanks. Sipum -- You

Re: Getting MultiValueDictKeyError

2019-05-16 Thread Sipum Mishra
, 16 May, 2019, 6:42 PM Test Bot, wrote: > Try putting encrypt="multipart/form-data" in your form tag > > On Thu, May 16, 2019, 6:05 PM Sipum wrote: > >> Hi Friends, >> >> when retrieving file that is uploaded , I'm getting >> multiValueDictKeyError. &g

Getting MultiValueDictKeyError

2019-05-16 Thread Sipum
Hi Friends, when retrieving file that is uploaded , I'm getting multiValueDictKeyError. Below are my codes. I have proided some codes where I m getting error. could anyone help me here ? views.py - def webform_submit(request): if request.method =='POST': name =

Re: Django issue with NoModuleError

2019-05-13 Thread Sipum Mishra
Hi RLM, Did you import samples in root urls.py Like as below >From samples import urls Hope it will solve ur error. Thanks. On Mon, 13 May, 2019, 7:45 PM John Bagiliko, wrote: > Try this in samples/urls.py > > from django.urls import path > from . import views > > urlpatterns = [ >

Re: Integrating Google calendar API in TODO list

2019-04-24 Thread Sipum Mishra
ue, 23 Apr 2019 at 09:58, Sipum wrote: > >> Hello friends. >> >> I am going to integrate google calendar API in to my TODO List. >> can anyone suggest how to integrate so that when I will add any event in >> my TODO List app it will directly show in my google cale

Re: Database setup

2019-04-22 Thread Sipum
Hi somen, Just Open xampp control panel and run apache and mySQL sever. then go to localhost/phpmyadmin in browser and there create a database as u do for php. then in search DATABASE in settings.py file (which would be created when u create a project in django) do the below changes -

Integrating Google calendar API in TODO list

2019-04-22 Thread Sipum
Hello friends. I am going to integrate google calendar API in to my TODO List. can anyone suggest how to integrate so that when I will add any event in my TODO List app it will directly show in my google calendar. Thanks. -- You received this message because you are subscribed to the Google

Re: Storing HTML in DB using DJANGO

2019-04-21 Thread Sipum Mishra
gt;> This way you’d store raw data. >> >> >> On Apr 21, 2019, at 8:41 AM, Jani Tiainen wrote: >> >> Well after all, HTML is just plain text... Though you probably want to >> think to do some sanitization so you won't get nasty injections via html. >> &g

Re: Django - always getting False in form.is_valid()

2019-04-21 Thread Sipum Mishra
ls fields that > are not required in forms you need to use blank=True. > > Though that's not the right solution. > > Why are you including "completed" field in a form (which you validate for > user input) if you are not going to have such a input (checkbox) in a form? > &

Re: Django - always getting False in form.is_valid()

2019-04-21 Thread Sipum Mishra
1 Apr 2019 at 17:27, Sipum Mishra wrote: > Jani, Do you mean I need to change completed field in model like as below ? > > completed = models.BooleanField(default=False,required=False) > > On Sun, 21 Apr 2019 at 17:23, Sipum Mishra wrote: > >> Hi Jani, >> form.erro

Re: Django - always getting False in form.is_valid()

2019-04-21 Thread Sipum Mishra
Jani, Do you mean I need to change completed field in model like as below ? completed = models.BooleanField(default=False,required=False) On Sun, 21 Apr 2019 at 17:23, Sipum Mishra wrote: > Hi Jani, > form.errors gives error as - > > itemThis field is > required.< > /li&g

Re: Django - always getting False in form.is_valid()

2019-04-21 Thread Sipum Mishra
d should see that it complains about > "completed" "this field is required" > > Note that providing default value in a model is not same as making field > optional. > > On Fri, Apr 19, 2019 at 2:05 PM Sipum Mishra wrote: > >> Hi All, >> >> I am alw

Storing HTML in DB using DJANGO

2019-04-20 Thread Sipum Mishra
Hi friends, I want to store a html in database using python and need to retrieve that html and convert that in to PDF. can u plz suggest me how to store that HTML in DB ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Django - always getting False in form.is_valid()

2019-04-20 Thread Sipum Mishra
Hi Vineeth, when I am trying to add 'add testing' through html form for todo list app getting this above form.is_valid() always False. On Sat, 20 Apr 2019 at 23:02, Sipum Mishra wrote: > Hi Vineeth, > > please find below is t

Re: Django - always getting False in form.is_valid()

2019-04-20 Thread Sipum Mishra
Hi Vineeth, please find below is the output -> On Fri, 19 Apr 2019 at 19:04, vineeth sagar wrote: > can you please post, request.POST output? > > On Fri, 19 Apr 2019, 16:34 Sipum Mishra, wrote: > >> Hi All, >> >> I am always getting - form.is_valid retu

Django - always getting False in form.is_valid()

2019-04-19 Thread Sipum Mishra
Hi All, I am always getting - form.is_valid returning False. kindly check where I am doing wrong. please find below code. views.py --- def home(request): if request.method == 'POST': form = ListForm(request.POST or None) print(form.is_valid(), "-->",request.POST['Item'])