Re: Help needed

2021-02-23 Thread Rodrigo Delfino
Such as others have said, you should remove ```auto_now=True```, after that, you cant forget to run ```makemigrantions``` and ```migrate``` Em terça-feira, 23 de fevereiro de 2021 às 03:04:24 UTC-3, bhurk...@gmail.com escreveu: > Hello everyone, > > I am trying to select the custom date but >

Re: Help needed

2021-02-23 Thread FIRDOUS BHAT
Why don't you change field type to Char and save the datetimestamp by your side? On Tue, Feb 23, 2021 at 12:21 PM neha bhurke wrote: > I have done all these codes but it is saving only the current date . > Any other method > *Regard,* > *Neha Bhurke* > > *Precise Industrial Solutions Private Lim

Re: Help needed

2021-02-23 Thread Chelsea Fan
Replace auto_now to auto_add_now On Tue, 23 Feb 2021, 9:04 am neha bhurke, wrote: > Hello everyone, > > I am trying to select the custom date but > datetime=models.DateTimeField(auto_now=True) > is only taking current date > Please help me > > -- > You received this message because you are

Re: Help needed

2021-02-23 Thread FIRDOUS BHAT
You definitely have to remove, auto_now=True On Tue, Feb 23, 2021 at 11:34 AM neha bhurke wrote: > Hello everyone, > > I am trying to select the custom date but > datetime=models.DateTimeField(auto_now=True) > is only taking current date > Please help me > > -- > You received this message b

Re: Help needed

2021-02-23 Thread John
I think you are misunderstanding the use of `auto_now=True`. It will always set that field to the time when the object was last saved; it's not meant to be a form field. See https://docs.djangoproject.com/en/3.1/ref/models/fields/#datefield. What are you trying to do? Have a date field that is

Re: Help needed

2021-02-22 Thread neha bhurke
I have created the form this is my views.py. def newdata(request): if request.method == "POST": MyDataform = Dataform(request.POST) if MyDataform.is_valid(): MyDataform.save() results = machinelist.objects.all() #result = data.objects.all()

Re: Help needed

2021-02-22 Thread Danny
Maybe it is not related to the model definition, but rather the .save() object? On Tuesday, February 23, 2021 at 1:52:04 PM UTC+7 bhurk...@gmail.com wrote: > I have done all these codes but it is saving only the current date . > Any other method > *Regard,* > *Neha Bhurke* > > *Precise Industri

Re: Help needed

2021-02-22 Thread neha bhurke
I have done all these codes but it is saving only the current date . Any other method *Regard,* *Neha Bhurke* *Precise Industrial Solutions Private Limited* Mob: +91 7738946067 I O: +91 22 28943214 Add: 115, 1st Floor, Hari Om Plaza, Behind Omkareshwar Mandir, Near National Park, Borivali (E), M

Re: Help needed

2021-02-22 Thread Omkar Parab
datetime=models.DateTimeField(auto_now=False) ? Or remove "auto_now" datetime=models.DateTimeField() On Tue, Feb 23, 2021, 11:34 AM neha bhurke wrote: > Hello everyone, > > I am trying to select the custom date but > datetime=models.DateTimeField(auto_now=True) > is only taking current date

Re: Help Needed For .Error Solving

2019-03-26 Thread Manas Nikam
Where is the error at response from paytm or at your request for payment information? On Tue, Mar 26, 2019, 6:57 AM Mike Dewhirst wrote: > On 26/03/2019 4:35 am, Kumar Ashirwad Mishra wrote: > > I am trying to send a request to paytm gateway checkout api for online > > transaction so I have crea

Re: Help Needed For .Error Solving

2019-03-25 Thread Mike Dewhirst
On 26/03/2019 4:35 am, Kumar Ashirwad Mishra wrote: I am trying to send a request to paytm gateway checkout api for online transaction so I have created a form that has hidden values for request. So how to solve the csrf_token problem .. Thankyou You need to include the CSRF token immediately

Re: Help needed - new very first django App

2018-03-01 Thread Jayaram Namburaj
Hi Kasper, Thanks for your findings. It is working now as per your suggestion. Regards JayaramN On Wednesday, February 28, 2018 at 11:41:27 PM UTC+5:30, Kasper Laudrup wrote: > > Hi Jayaram, > > On 2018-02-28 15:45, Jayaram Namburaj wrote: > > > > When running the url http://127.0.0.1:8000/m

Re: Help needed - new very first django App

2018-02-28 Thread Kasper Laudrup
Hi Jayaram, On 2018-02-28 15:45, Jayaram Namburaj wrote: When running the url http://127.0.0.1:8000/myapp/exRenderDict/ output doesn't display the values which is from the for loop. You named your list 'MyListArg' not 'mylist' in the dictionary you passed to the render function. Try chang

Re: Help Needed: Django Server For High Frequent Requests

2016-12-10 Thread Xiao Bo
Thanks! 在 2016年12月10日星期六 UTC-5下午4:43:47,Avraham Serour写道: > > don't use runserver for production ever. > > read the django documentation: > https://docs.djangoproject.com/en/1.10/howto/deployment/ > > after that I suggest using nginx with uwsgi > > it is also worth reading uwsgi documentation, th

Re: Help Needed: Django Server For High Frequent Requests

2016-12-10 Thread Avraham Serour
don't use runserver for production ever. read the django documentation: https://docs.djangoproject.com/en/1.10/howto/deployment/ after that I suggest using nginx with uwsgi it is also worth reading uwsgi documentation, there are a lot of options you can tweak nginx also has some options you can

Re: Help Needed: Django Server For High Frequent Requests

2016-12-10 Thread Xiao Bo
Yes, I did. 在 2016年12月10日星期六 UTC-5下午3:37:17,Avraham Serour写道: > > are you using manage.py runserver? > > > On Fri, Dec 9, 2016 at 10:13 PM, Xiao Bo > > wrote: > >> I'm building a Django server for data collection. However, the program >> seems not capable when the sensing network expands. As tim

Re: Help Needed: Django Server For High Frequent Requests

2016-12-10 Thread Avraham Serour
are you using manage.py runserver? On Fri, Dec 9, 2016 at 10:13 PM, Xiao Bo wrote: > I'm building a Django server for data collection. However, the program > seems not capable when the sensing network expands. As time goes on, the > program doesn't even enter the code piece and report broken pi

Re: Help needed for big django project (crm+shop+cms+autoresponder). What apps shall I build on?

2015-07-23 Thread Avraham Serour
I know this is an old thread, but I bumped on it while cleaning my inbox. In any case if it still relevant I recommend looking at treee.io, the website is down but you can take a look at the code at github ( https://github.com/treeio/treeio) On Sat, Jun 6, 2015 at 6:55 PM, Luis Zárate wrote: >

Re: Help needed for big django project (crm+shop+cms+autoresponder). What apps shall I build on?

2015-06-06 Thread Luis Zárate
Some useful links: 1. CRM system > https://github.com/kunitoki/nublas -> client database > -> ticket system (client communication including sending emails from > backend) > https://github.com/wyldebeast-wunderliebe/mrwolfe https://github.com/rossp/django-helpdesk 2. Shop > -> c

Re: Help needed for big django project (crm+shop+cms+autoresponder). What apps shall I build on?

2015-06-06 Thread Luis Zárate
Did you serch for something like this https://www.*odoo*.com/, It is not django but it is in python and released under the AGPL license. If you want to build your software stack based in django then start searching in https://www.djangopackages.com/. 1. *CRM* system -> client database -> tick

Re: Help needed in constructing __in query

2014-08-05 Thread Collin Anderson
AlertTable.objects.filter(pendingalertstable__in=inner_qs) Or I you could even do: AlertTable.objects.filter(pendingalertstable__id__gt=0) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: help needed with multiple profile images with UserProfile

2012-02-24 Thread richard
Thanks tom, that worked and now understand what i was doing wrong. much appreciated. On Feb 24, 7:08 am, Tom Evans wrote: > On Fri, Feb 24, 2012 at 2:55 PM, richard wrote: > > Hi Tom, > > > Thanks for your reply. So for clarity i thought i was getting the > > userprofile to pass into the bound

Re: help needed with multiple profile images with UserProfile

2012-02-24 Thread Tom Evans
On Fri, Feb 24, 2012 at 2:55 PM, richard wrote: > Hi Tom, > > Thanks for your reply. So for clarity i thought i was getting the > userprofile to pass into the bound form so that the userprofile_id in > the UserProfilePic would get populated/saved. as if i leave the > instance as None > then i get

Re: help needed with multiple profile images with UserProfile

2012-02-24 Thread richard
Hi Tom, Thanks for your reply. So for clarity i thought i was getting the userprofile to pass into the bound form so that the userprofile_id in the UserProfilePic would get populated/saved. as if i leave the instance as None then i get an error saying that userprofile_id cannot be empty? also, is

Re: help needed with multiple profile images with UserProfile

2012-02-24 Thread Tom Evans
On Fri, Feb 24, 2012 at 2:20 PM, richard wrote: > Hi, Am i doing this in the correct way? > […] > > any help would be greatly appreciated. > > […] > > from .models import UserProfilePic > class UserProfilePicForm(ModelForm): >    class Meta: >        model = UserProfilePic >        fields = ('prof

Re: HELP NEEDED

2010-11-23 Thread Michael Sprayberry
I would definitely go Django for this project and maybe divide out the project and get some people to help you seeing as this is your first project. Not only do you have to take into account the look up the website, the models for employers and freelancers, but you are also going to need to take

Re: HELP NEEDED

2010-11-23 Thread Huy Ton That
I would recommend selecting an easier first project. Good luck. On Nov 23, 2010 1:28 PM, "Dipo Elegbede" wrote: Hi, I have done some extensive reading on python. i want to design a classifieds site for jobs. The service is meant to send people who register an sms with available jobs that fit the

Re: Help needed for XML to xslt conversion

2010-08-13 Thread Boguslaw Faja
Hi, are you trying to do that using django or this group had been choosed at random? :-) I suggest looking for 'xpath'. hint: /[...@attr="val"] best regards, On Fri, Aug 13, 2010 at 8:36 AM, Rahul wrote: > > Hi > I have seen a lots of example to pick the data from simple xml for example > >

Re: help needed in ModelForm __unicode__

2010-03-26 Thread Kenneth Gonsalves
On Friday 26 Mar 2010 3:38:10 pm Emanuel wrote: > both combo's. > I want to filter only men or women depending the case. Is it possible? Or > should I create another method for independent cases? If it is the > solution how can I use it? I'm not getting there because it is a instance > of a cla

Re: help needed in ModelForm __unicode__

2010-03-26 Thread Daniel Roseman
On Mar 26, 10:08 am, Emanuel wrote: > Hi! > > I Have this model: > class Person(models.Model): >     user = models.ForeignKey(User) >     nr = models.IntegerField(blank=True,) >     gender = models.CharField(max_length=1, blank=True, > choices=gender_choices) > >     def __unicode__(self): >      

Re: help needed: apache httpd.conf and urls

2009-04-30 Thread zayatzz
Thanks! Its working just fine now :) Alan. On Apr 30, 10:37 pm, Malcolm Tredinnick wrote: > On Thu, 2009-04-30 at 12:27 -0700, zayatzz wrote: > > Hello > > > I have this in my template : > > > > > settings file is following: > > MEDIA_ROOT = '/var/www/media/' > > MEDIA_URL = "http://localhost

Re: help needed: apache httpd.conf and urls

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 12:27 -0700, zayatzz wrote: > Hello > > I have this in my template : > > > settings file is following: > MEDIA_ROOT = '/var/www/media/' > MEDIA_URL = "http://localhost/media/"; > > when i go to the webpage then the stuff that i get from server says > > > Even when i rep

Re: Help needed debugging a weird MySQL error!

2008-12-08 Thread bruno desthuilliers
On 8 déc, 14:28, taleinat <[EMAIL PROTECTED]> wrote: > I have a Django application, and I wrote an external script which > reads and writes to the Django database. I've started getting the > following exception consistently: > > Exception _mysql_exceptions.ProgrammingError: (2014, "Commands out

Re: Help needed: too complex for me

2008-08-21 Thread Norman Harman
space0x42 wrote: > Hi all hi, I bet your getting an error since the labels property has no "setter" only a getter and you are trying to assign to it. I'd probably try to rewrite the models with proper model fields instead of that label. But, might not be an option nor good option for someone

Re: Help needed (very granular admin permissions)

2008-03-07 Thread fizban
On Mar 7, 2:01 pm, David Reynolds <[EMAIL PROTECTED]> wrote: > > You'll probably have to roll your own admin system where you can > enforce this the per row permissions. Thanks, I digged into it a bit and it looks like the best solution for me is to use the newforms-admin branch (newform is supp

Re: Help needed (very granular admin permissions)

2008-03-07 Thread David Reynolds
On 7 Mar 2008, at 11:50 am, fizban wrote: > > Hello, > > I'm doing my first complex django based application (actually a > website), I started doing it in PHP but it really bored me having to > deal with a huge amount of forms.. so I decided to go for the good old > django. I'm not new to Django

Re: HELP needed POST and Python

2007-09-13 Thread AniNair
Hello, I wish to make an app that takes id (as integer ) from the user and displays details. I am using GET to take the value from the user to the view. Now I have the id in variable uid in a function disp_list(). def disp_list(request): uid = request.GET['id_user'] ed_user=getfrmdb(

Re: HELP needed POST and Python

2007-09-13 Thread AniNair
It's working fine now. thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

Re: HELP needed POST and Python

2007-09-13 Thread AniNair
Hello, I wish to make an app that takes id (as integer ) from the user and displays details. I am using GET to take the value from the user to the view. Now I have the id in variable uid in a function disp_list(). def disp_list(request): uid = request.GET['id_user'] ed_user=getfrmdb(

Re: HELP needed POST and Python

2007-09-12 Thread Collin Grady
1) The newforms documentation shows you how to pass request.POST into the form (see the view example): http://www.djangoproject.com/documentation/newforms/ 2) You don't need to put the user in your form in order to do initial data. Just pass the form an initial dict when you make an instance of

Re: HELP needed POST and Python

2007-09-12 Thread AniNair
Please help. Thanking you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Help needed with forms (newbie)

2007-09-03 Thread Russell Keith-Magee
On 9/4/07, AniNair <[EMAIL PROTECTED]> wrote: > > Hi... > This might be incredibly simple. BUT.. I am trying to learn python > and django and have been trying to do some form submission (entering a > data on one page and accessing it).. I cannot find a way to do that > using django... Can anyone

Re: Help needed

2007-08-24 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 james_027 schrieb: > Hi ani, > > On Aug 24, 3:42 pm, Ani Nair <[EMAIL PROTECTED]> wrote: >> Hi I'm new to this.. I want to know whether django restricts the use >> of '?' in urls. I am unable to use it in the url config > > My guess is that "?" is a

Re: Help needed

2007-08-24 Thread Ben van Staveren
On 24/08/2007, at 3:03 PM, james_027 wrote: > > Hi ani, > > On Aug 24, 3:42 pm, Ani Nair <[EMAIL PROTECTED]> wrote: >> Hi I'm new to this.. I want to know whether django restricts the use >> of '?' in urls. I am unable to use it in the url config > > My guess is that "?" is a special char in reg

Re: Help needed

2007-08-24 Thread james_027
Hi ani, On Aug 24, 3:42 pm, Ani Nair <[EMAIL PROTECTED]> wrote: > Hi I'm new to this.. I want to know whether django restricts the use > of '?' in urls. I am unable to use it in the url config My guess is that "?" is a special char in regex which django uses in url config... try to escape it. Ho

Re: Help needed in understanding newforms.

2007-03-04 Thread akaihola
On 2 March, Malcolm Tredinnick wrote: > [...] Group B are those forms where the input data is then > munged in some way and split across possibly multiple models for > storage. An example here might be a form that allows multiple teams for > a competition to be entered -- the data is split across

Re: Help needed in understanding newforms.

2007-03-01 Thread Michael Lake
Malcolm Tredinnick wrote: > I fear you might still be confusing the uses of model.save() and > form.save() here. Mike Keller needed a save() method in his model for > the reasons you noted: he wanted to automatically populate some > particular fields on every save. Regardless of whether the saving

Re: Help needed in understanding newforms.

2007-03-01 Thread Malcolm Tredinnick
On Fri, 2007-03-02 at 17:15 +1100, Michael Lake wrote: > Malcolm Tredinnick wrote: [...] > >>Also I'm confused on the save methods. Some exemples use form.save() and > >>others > >>define a save method under the model Class. > > > > They serve slightly different purposes. A model class may have

Re: Help needed in understanding newforms.

2007-03-01 Thread Michael Lake
Malcolm Tredinnick wrote: > Hi Michael, > > On Fri, 2007-03-02 at 16:08 +1100, Michael Lake wrote: >> Im trying to understand newforms and comparing the newforms docs at >> http://www.djangoproject.com/documentation/newforms/ with "Using djangos >> newforms" at >> http://code.pui.ch/2007/01/0

Re: Help needed in understanding newforms.

2007-03-01 Thread Malcolm Tredinnick
Hi Michael, On Fri, 2007-03-02 at 16:08 +1100, Michael Lake wrote: > Hi all > > Im trying to understand newforms and comparing the newforms docs at > http://www.djangoproject.com/documentation/newforms/ with "Using djangos > newforms" at > http://code.pui.ch/2007/01/07/using-djangos-newform

Re: Help needed with select_related and a Many-to-many relationship.

2007-02-11 Thread Malcolm Tredinnick
On Mon, 2007-02-12 at 14:11 +1100, Michael Lake wrote: [...] > Excellent! > > And also thanks for the short python way to express that loop. No problems. Glad we could help you so fast. > > [ep.procedure for ep in e.experiment_procedure_set.all()] > > Next I'll work on trying to understand the

Re: Help needed with select_related and a Many-to-many relationship.

2007-02-11 Thread Michael Lake
Malcolm Tredinnick wrote: > On Mon, 2007-02-12 at 13:04 +1100, Michael Lake wrote: > >>Hi all >> >>I made this post earlier but since then I have gone back to try and get this >>working >>by understanding things via the django shell. The app is for a lab where >>users will >>have a list of ex

Re: Help needed with select_related and a Many-to-many relationship.

2007-02-11 Thread Malcolm Tredinnick
On Mon, 2007-02-12 at 13:04 +1100, Michael Lake wrote: > Hi all > > I made this post earlier but since then I have gone back to try and get this > working > by understanding things via the django shell. The app is for a lab where > users will > have a list of experiments. Each experiment cons