Re: Dream 11

2022-09-07 Thread Anurag Agarwal
Please contact @RishavPant or @RohitSharma On Wed, Sep 7, 2022, 19:36 Vineet Kothari wrote: > Hi, > I want to create a web app like dream 11 any hint will be appreciated. > > Thanks & Regards, > Vineet Kothari > > -- > You received this message because you are subscribed to the Google

Re: __init__() got an unexpected keyword argument 'on delete' when make migrations

2021-12-05 Thread Anurag Agarwal
Why are you fucking passing the args On_delete in manytomany . Class promotion = models.ManyToManyField(Promotions, on_delete=models.CASCADE) On Sun, Dec 5, 2021, 21:09 Samuel Nogueira wrote: > Please, can you take some prints of your models? > > Em dom., 5 de dez. de 2021 12:34, Khánh

Re: optimisation django

2021-02-11 Thread Anurag Kumar
use indexes.. On Wednesday, February 10, 2021 at 7:25:45 PM UTC+5:30 en2lin...@gmail.com wrote: > > I am developing a django application, most of the views are tables, I am > facing a problem the loading time of my page is extremely long. how can I > do to optimize this, my data set

Re: get_absolute_url in djano 2.1.7

2019-03-17 Thread Ankit Anurag
The one major use is that this function helps you avoid situations where you have to hardcode a URL in your templates. Instead, you use something like {{.get_absolute_url}} and even if you change the path in some way at some later point of time, it won't matter. It's basically a really good

django admin css not loading in localhost

2018-02-22 Thread anurag bhadauriya
i am using django-1.11.6. whenever i open my admin panel and login to it then it looks like the simple html file. no any css files are loading .The interface i am seeing is totally different than that of the tutorials using which i am learning.please give me the stepwise solution -- You

'base64' is not a text encoding; use codecs.decode() to handle arbitrary codecs

2018-02-20 Thread anurag kumar
Its showing error LookupError: 'base64' is not a text encoding; use codecs.decode() to handle arbitrary codecs. Last few lines when the execution stops are - thumbnail = resize(photo_data, 200, 200) File "/home/anurag/photoshare/app.py", line 406, in resize image_string = StringIO(

cx_Oracle - Django ORM - Reference Count Increase

2014-12-27 Thread Anurag Chourasia
All, I have a Long Running Python Process that uses Django ORM against Oracle database. The size of the process keeps on increasing steadily. I was profiling this process using mem_top and i find that the reference count of one particular data type increases continuously with iterations.

how to add additional data to that submitted by the user in a django form

2014-06-23 Thread Anurag Baidyanath
I am trying to create a form in which the user enter details like his email id and query. After the form is submitted i have to save the data that I get from the form along with some additional info such as userid , submitted date and time, etc into the database. What approach should be

Setting initial value of a autoincrement field in the database

2014-06-19 Thread Anurag Baidyanath
I have a field in my models.py file as follows ticket_id = models.AutoField(primary_key=True) The value for the ticket_id column starts at 1. say i wanted it to start from some value (say 989) . how do i accomplish this using django? -- You received this message because you are subscribed to

Re: implementing a ticket submission system

2014-06-13 Thread Anurag Baidyanath
yCharm (Best Python/Django IDE) > http://www.jetbrains.com/pycharm/ > "Develop with pleasure!" > > > >-Original Message- > >From: django...@googlegroups.com > >[mailto:django...@googlegroups.com ] On Behalf Of Anurag > Baidyanath > >Sent: We

implementing a ticket submission system

2014-06-11 Thread Anurag Baidyanath
i am implementing a ticket submission system whose model.py file looks loke this: class Ticket(models.Model): user_id=models.ForeignKey(User) category_id=models.ForeignKey(Category) subject=models.CharField(max_length=100) message=models.TextField(help_text="enter message")

Re: Modifying the request.POST data that is received from a form; form is not getting validated then

2014-06-10 Thread Anurag Baidyanath
(self.user_id) On Tuesday, 10 June 2014 18:23:42 UTC+5:30, Daniel Roseman wrote: > > On Tuesday, 10 June 2014 12:25:10 UTC+1, Anurag Baidyanath wrote: >> >> i am having difficulty in saving the form data to the database. >> > > And we are having difficulty reading

Modifying the request.POST data that is received from a form; form is not getting validated then

2014-06-10 Thread Anurag Baidyanath
i am having difficulty in saving the form data to the database. After the user submits the form; fields such as ticket_id , created_date, etc have to be added to the POST request which is generated as a result of the form submission. I have copied the POST data to another dictionary and

Re: Installing Django

2013-12-12 Thread Anurag Chourasia
It goes into Lib\site-packages folder. Regards, Anurag On Thu, Dec 12, 2013 at 6:55 PM, Frederick Miller <fjmille...@gmail.com>wrote: > For Windows XP, should Django be installed under the Python27 folder? Or > should Django be on the root of the C: drive? > > Frederick M

Re: Need Advise on the best way to track how much time a user is logged in.....

2013-08-22 Thread Anurag Chourasia
is the Django bit here? Regards, Anurag On Thu, Aug 22, 2013 at 3:09 PM, <7equivale...@gmail.com> wrote: > My users will not be able to logout by closing a browser because they have > no such interaction with the system. They will be passing an RFID tag over > a reader to

Re: postgresql

2013-05-20 Thread Anurag Chourasia
Read this for a starter http://www.postgresql.org/docs/9.2/interactive/index.html Regards, Guddu On Mon, May 20, 2013 at 3:35 PM, Kakar Arunachal Service < kakararunachalserv...@gmail.com> wrote: > hi guyz! > I'm new to django and python, and very new to postgresql. Can u suggest > any books

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
Glad that it worked On Wed, May 15, 2013 at 11:52 AM, Cody Scott wrote: > The problem was that the LDAPSearch had to start with a OU= I had it start > with a DC=. > > > On Wednesday, 15 May 2013 11:27:08 UTC-4, Cody Scott wrote: >> >> I have that code but where does

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
Its just basic python logging http://docs.python.org/2/library/logging.html Look at logging to a file http://docs.python.org/2/howto/logging.html#logging-advanced-tutorial Regards, Guddu On Wed, May 15, 2013 at 11:27 AM, Cody Scott wrote: > I have that code but

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
Ok. Now try to get django-ldap-auth working. See if you can enable the logging handler and grab some more information. http://pythonhosted.org/django-auth-ldap/logging.html Regards Guddu On Wed, May 15, 2013 at 10:56 AM, Cody Scott wrote: > Ok The problem was that I

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
Hi Cody In the link that you sent i see that initialize is a valid attribute. Also did you name your python file as ldap.py? If yes then that's the problem i guess. Please rename it to something else and see what it gives you. Could you run these in a Python interpreter and tell me what does

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
What does this give you? import ldap dir(ldap) Regards Guddu On Wed, May 15, 2013 at 10:04 AM, Cody Scott wrote: > I put that code in a separate python file and ran it without django or > django-auth-ldap. > > l = ldap.initialize() > AttributeError: 'module' object

Re: django-auth-ldap

2013-05-14 Thread Anurag Chourasia
Setting up of groups is not a requirement. In my case I am searching for group membership just to grant/deny access based on Group membership also. I sent my settings to you just to show you how I was using sAMAccountName for user search. So what exactly is not working in your case? You are not

Re: django-auth-ldap

2013-05-14 Thread Anurag Chourasia
Hi Cody, I am also using a Search Bind in a similar situation as yours You could easily use the samaccountName for User Search. Here is what I have in settings.py to give you a clearer picture. AUTH_LDAP_USER_SEARCH = LDAPSearchUnion( > LDAPSearch("OU=Users, >

Re: Custom view on the home page based on groups assigned to user.

2013-04-12 Thread Anurag Chourasia
Within the templates, you can show different HTML elements based on the user attributes/group. Traditional IF checks. Regards, Guddu On Fri, Apr 12, 2013 at 4:59 PM, Enator24 wrote: > Hi I need to develop an application where I have three groups first the > creator,

Re: django / django cms + responsive

2013-03-14 Thread Anurag Chourasia
Look at 1. Twitter Bootstrap. http://twitter.github.com/bootstrap/ 2. Foundation Zurb. http://foundation.zurb.com/ Regards, Anurag On Mar 14, 2013 7:03 AM, "Frank Bieniek" <frank.bien...@produktlaunch.de> wrote: > Hi Guys, > what are your preferred apps to tur

Re: WebService WSDL

2012-06-28 Thread Anurag Chourasia
Try using gSOAP if that fits your needs. http://www.cs.fsu.edu/~engelen/soap.html Regards, Guddu On Thu, Jun 28, 2012 at 2:47 PM, Rene wrote: > Pessoal, > > Preciso montar um webservice que gere um wsdl, mas não achei algo que > fosse mais direto na web, alguém tem um

Re: Apache does not display a flash file

2012-05-10 Thread Anurag Chourasia
Could you have a look at the Error Logs as shown on the Tools --> Web Developer --> Web Console in Firefox if u have something in there? On Thu, May 10, 2012 at 7:43 AM, atul khairnar wrote: > When right-clicked at the location where flash should have rendered, > it

Re: Django making box

2012-03-13 Thread Anurag Chourasia
What Javier meant in his previous message was a client application .which of course could be a browser running on your own computer. For a better understanding of client/server model you could review the Wikipedia page http://en.wikipedia.org/wiki/Client%E2%80%93server_model Regards, Guddu

Re: dropdown select box in django

2012-02-20 Thread Anurag Chourasia
This is weird I simply copy pasted your code in my environment and it shows me a Drop Down. Could you save the models file again and close your browser (or even try clearing cache) and restart your apache/django dev server whatever may be the case and try again? Regards, Anurag On Mon, Feb

Re: mod_Wsgi Problem

2012-01-04 Thread Anurag Chourasia
You will need to allow apache access to the folder where you have your wsgi script. Please add this in your httpd.conf and restart apache and see if it helps. Order deny,allow Allow from all Regards, Anurag On Wed, Jan 4, 2012 at 6:52 PM, Hassan <halna...@gardeniatelco.com> wrote: >

Re: mod_Wsgi Problem

2012-01-04 Thread Anurag Chourasia
Could you try changing your WSGIScriptAlias in httpd.conf From WSGIScriptAlias / "C:/mysite/django.wsgi" To WSGIScriptAlias /MYSITE "C:/mysite/django.wsgi" And then access http:localhost:port/MYSITE and tell is the results. Regards, Anurag On Jan 4, 2012 7:19

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-22 Thread Anurag Chourasia
I am in :-) On Wed, Jun 22, 2011 at 11:39 AM, Ivan Aleman wrote: > > > On 22 June 2011 08:15, Cal Leeming [Simplicity Media Ltd] < > cal.leem...@simplicitymedialtd.co.uk> wrote: > >> >> If you're interested, please reply on-list so others can see. >> >> >> > Sweet! Count

Re: How to fix a column typo in django

2011-04-18 Thread Anurag Chourasia
manually to reflect the New Column Name. Regards, Anurag On Mon, Apr 18, 2011 at 7:41 PM, Kann Vearasilp <vearas...@gmail.com> wrote: > Hi Anurag, > > That was one of my idea, but what if the table has already been populated > and I don't want to lose the data in the table? >

Re: How to fix a column typo in django

2011-04-18 Thread Anurag Chourasia
Hi Kann, Does Dropping the Table and Recreating using SyncDB work well in your setup? Regards, Anurag On Mon, Apr 18, 2011 at 7:30 PM, Kann <vearas...@gmail.com> wrote: > Dear all, > > I am new to django and have question about fixing the typo i made in > the models.py. For

Re: Not Printing stmt in for loop

2011-03-17 Thread Anurag Chourasia
This is a Python Question (not Django) How are you populating cr? Did you check if there are any rows at all before looping over the rows? Regards, Anurag On Fri, Mar 18, 2011 at 12:07 AM, NavaTux <navaneetha...@gmail.com> wrote: > Here I ahd a piece of code to execute my custom python

Bash autocompletion for django-admin.py/manage.py

2011-02-18 Thread Anurag
I just posted a simple script to autocomplete django-admin.py/manage.py commands in bash: https://github.com/agoel/django-bash-complete I hope it can save everyone some keystrokes. Best, Anurag -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: parsing SOAP request

2011-01-27 Thread Anurag Chourasia
Could you try with this elif request.method == 'POST': print request.raw_post_data response = HttpResponse(mimetype='text/xml') response.write(request.raw_post_data) return response Regards, Anurag On Thu, Jan 27, 2011 at 1:07 PM, sami nathan <itssam

Re: Django Email

2011-01-21 Thread Anurag Chourasia
Googling for django-mailer gets me to this page http://code.google.com/p/django-mailer/ <http://code.google.com/p/django-mailer/>Regards, Anurag On Fri, Jan 21, 2011 at 8:58 PM, hank23 <hversem...@stchas.edu> wrote: > OK what exactly is django-mailer? > > On Jan 19, 4:

Re: Beginner question about Postgresql

2011-01-14 Thread Anurag Chourasia
;help", "copyright", "credits" or "license" for more information. >>> import psycopg2 >>> Regards, Anurag On Sat, Jan 15, 2011 at 10:37 AM, Django <greg0...@yahoo.com> wrote: > I am using Python27, Django and wanted to us Postgresql,

Re: Just saying hi

2010-12-19 Thread Anurag Chourasia
Welcome to the community Dave. Season's greetings to you too and everyone. Regards Anurag On Sun, Dec 19, 2010 at 5:46 PM, Dave Sayer <d...@bathdesign.co.uk> wrote: > Seasons Greetings, > > I joined the list yesterday and just wanted to say "Hi" and introduce > my

Re: Django vs Postgres Connection

2010-12-17 Thread Anurag Chourasia
if it works. Regards, Anurag On Sat, Dec 18, 2010 at 3:20 AM, armandoperico <armandoper...@hotmail.com>wrote: > sorry, > how should do to specify the password on the wsgi file ? > this would be the best i have so far. > > thanks > > > On Dec 17, 10:17 pm, Anurag Chouras

Re: Django vs Postgres Connection

2010-12-17 Thread Anurag Chourasia
per...@hotmail.com>wrote: > yes. > > On Dec 17, 10:04 pm, Anurag Chourasia <anurag.choura...@gmail.com> > wrote: > > On this server, are you able to connect to the PostGre database using > the > > command line? > > > > psql -U myuser -h 127.

Re: Django vs Postgres Connection

2010-12-17 Thread Anurag Chourasia
On this server, are you able to connect to the PostGre database using the command line? psql -U myuser -h 127.0.0.1 -p 5432 -d dbname Regards, Anurag On Sat, Dec 18, 2010 at 2:19 AM, armandoperico <armandoper...@hotmail.com>wrote: > on settings.py.. > > DATABASES =

Re: Django vs Postgres Connection

2010-12-17 Thread Anurag Chourasia
You might want to check your wsgi script. Looks like the environment variables that you have in there are wrong and not allowing the import of settings.py Regards, Anurag On Sat, Dec 18, 2010 at 1:32 AM, armandoperico <armandoper...@hotmail.com>wrote: > Hi, > this is the firs

Re: Initial Create Table Script

2010-12-03 Thread Anurag Chourasia
Yes there is. You need to use *./manage.py sql auth* instead of *./manage.py sql django.contrib.auth* Regards, Anurag On Fri, Dec 3, 2010 at 5:48 PM, Tim Sawyer <list.dja...@calidris.co.uk>wrote: > Is there a way to generate a sql script that gets the entire table > struct

Re: Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-12-02 Thread Anurag Chourasia
Hi Ian, Can't tell you how much this helps :-) Setting the variable using ctypes before the import of cx_Oracle does the trick for me. Appreciate the time you spent in helping resolve this. Is there any Cygwin specific doc where we could include this? Regards, Anurag On Fri, Dec 3, 2010 at 6

Re: Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-12-02 Thread Anurag Chourasia
ce_unicode raise DjangoUnicodeDecodeError(s, *e.args) django.utils.encoding.DjangoUnicodeDecodeError: 'utf8' codec can't decode bytes in position 22-24: invalid data. You passed in 'Registro guardado con \xe9xito' () Regards, Anurag On Fri, Dec 3, 2010 at 4:47 AM, Ian Kelly <ian.g.ke...@gmail.

Re: Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-12-02 Thread Anurag Chourasia
>> connection.cursor() # Initialize the connection >>> print os.environ['NLS_LANG'] .UTF8 >>> print connection.connection.encoding WINDOWS-1252 >>> print connection.connection.nencoding WINDOWS-1252 >>> Regards, Anurag On Fri, Dec 3, 2010 at 12:06 AM, Ian Kelly

Re: Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-12-02 Thread Anurag Chourasia
Hi Ian, Yes.I set the NLS_LANG in my shell to UTF8 before trying this. Query using Django model still fails (direct query using cx_Oracle works fine) Regards, Anurag On Thu, Dec 2, 2010 at 1:20 PM, Ian Kelly <ian.g.ke...@gmail.com> wrote: > On Wed, Dec 1, 2010 at 7:58 PM, Anurag

Re: Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-12-01 Thread Anurag Chourasia
.execute("select to_term from terminology_map where id=316") >>> cursor.fetchone()[0] 'Registro guardado con \xe9xito' Regards, Anurag On Wed, Dec 1, 2010 at 10:51 PM, Ian <ian.g.ke...@gmail.com> wrote: > On Nov 30, 8:31 pm, Anurag Chourasia <anurag.choura...

Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-11-30 Thread Anurag Chourasia
tils.encoding.DjangoUnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-3: invalid data. You passed in 'P\xe1ginas' () Please let me know if I am doing something wrong here or if there is already a solution available for this encoding problem. Regards, Anurag -- You received th

Deleted rows available in a transaction

2010-09-10 Thread Anurag
I am facing a very peculiar problem that even when I delete some rows, I can just get them back again in same transaction. Edit: I have created a sample app to test it out, so that I can be sure that none of my code is culprit. I created a testapp with following code **models.py** import

Re: Subprocess module in Python CGI

2009-01-08 Thread Anurag
. On Dec 23 2008, 1:59 pm, Kenneth Gonsalves <law...@thenilgiris.com> wrote: > On Monday 22 Dec 2008 4:21:31 pm Anurag wrote: > > > comd = [\ > >         "tar -xf x.tar.gz", \ > > nothing to do with python: > [law...@localhost programs]$ tar -xf x.tar.gz

Re: Subprocess module in Python CGI

2008-12-23 Thread Anurag
, Anurag <anurag.baga...@gmail.com> wrote: > Hello, > > I have started using python recently and would like to call a short > python script via > browser using a CGI script, but initially I am trying to call the same > python script directly through python command line. The scrip

Subprocess module in Python CGI

2008-12-22 Thread Anurag
Hello, I have started using python recently and would like to call a short python script via browser using a CGI script, but initially I am trying to call the same python script directly through python command line. The script intends to perform a few command line in a pipe and I have written

Re: Query

2008-10-23 Thread Anurag
lf asking for materials, Google first!  Then, > if you still have questions, use the mailing lists.  Otherwise it > looks like you're just too lazy to do your own research. > > On Oct 22, 11:16 am, Anurag <[EMAIL PROTECTED]> wrote: > > > Hello, > > > It is actually t

Re: Query

2008-10-22 Thread Anurag
to this. Thanking you once again. Regards. On Oct 22, 2:41 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 22 oct, 14:11, Anurag <[EMAIL PROTECTED]> wrote: > > > Hello Gerard, > > > Thank you so much for your suggestion. I have tried working in the > > d

Re: Query

2008-10-22 Thread Anurag
with respect to developing a Web-server using Python-CGI. Could you suggest some tutorials or links to them which could be helpful for a newbie to Python like me. Thanking you in advance. Regards. On Sep 25, 5:58 pm, Gerard Petersen <[EMAIL PROTECTED]> wrote: > Anurag, > > In your ca

Query

2008-09-25 Thread ANURAG BAGARIA
...!!! ANURAG KUMAR BAGARIA PhD Student Institute for Biophysical Chemistry J. W. Goethe University, Frankfurt Frankfurt am Main, Germany --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Problem with generic views in tutorial example

2008-08-23 Thread Anurag Goel
wrote: > On Aug 22, 4:18 pm, Anurag Goel <[EMAIL PROTECTED]> wrote:> I was able to > implement the generic views change with yesterday's > > trunk version successfully. I did not have to do anything special (no > > separate admin.py, no get_absolute_url()) > > > I did h

Re: Problem with generic views in tutorial example

2008-08-23 Thread Anurag Goel
, no need for any additional changes. On Aug 22, 1:38 am, Rodney Topor <[EMAIL PROTECTED]> wrote: > On Aug 22, 4:18 pm, Anurag Goel <[EMAIL PROTECTED]> wrote:> I was able to > implement the generic views change with yesterday's > > trunk version successfully. I did not

Re: Problem with generic views in tutorial example

2008-08-22 Thread Anurag Goel
, template_name='polls/ results.html'), 'poll_results'), (r'^(?P\d+)/vote/$', 'mysite.polls.views.vote'), ) --end-- Hope this helps. -Anurag On Aug 21, 10:45 pm, Rodney Topor <[EMAIL PROTECTED]> wrote: > I'm having trouble modifying the

unable to display images

2007-10-22 Thread Anurag
Sorry for this repeat post - but i am getting quite desperate and be very thankful for some help... I am unable to display images directly through Apache - with the following configuration.Can someone please help. Much thanks! the line in my base html reads the following my media_url is

Apache and images

2007-10-22 Thread Anurag
I am unable to display images directly through Apache - with the following configuration.Can someone please help. Much thanks! the line in my base html reads the following my media_url is set to /static/ and the htpd.conf reads the following SetHandler python-program

Re: admin media

2007-09-24 Thread Anurag
Thanks so much! Anurag On Sep 24, 1:39 pm, "Jonathan Buchanan" <[EMAIL PROTECTED]> wrote: > On 9/24/07, Anurag <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > Sorry for this repeat post - but i am getting desperate and > > seeking

admin media

2007-09-24 Thread Anurag
Hi, Sorry for this repeat post - but i am getting desperate and seeking some quick kindly help. I am unable to get my admin media to be served by Apache. I am runinng on windows. Here is my httpd.conf SetHandler python-program PythonHandler django.core.handlers.modpython

Re: serving admin files with Apache/mod_python

2007-09-21 Thread Anurag
AIL PROTECTED]> wrote: > On 21-Sep-07, at 5:13 PM, Anurag wrote: > > > However my admin interface is all garbled up and what i did was i > > copied the media directory from /admin/media into the htdocs of my > > Apache setup. But i am still unable to see the admin interface &

Re: serving admin files with Apache/mod_python

2007-09-21 Thread Anurag
ntrib/admin/ media/" Order deny,allow Allow from all On Sep 21, 4:57 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 21-Sep-07, at 5:13 PM, Anurag wrote: > > > However my admin interface is all garbled up and what i did was i > > copied the

serving admin files with Apache/mod_python

2007-09-21 Thread Anurag
hello, i am a new user of django and would like some simple worded instructions on how to serve the admin interface with Apache and mod_python. With my current set up i have the following in my httpd.conf: SetHandler python-program PythonHandler