Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-08 Thread Venkatraman S
Cal, Quiet frankly, it looks to me that if you are spending some effort on this - better start with django on pypy. And then probably we can move to 'one-binary' idea. -V -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Django Knowledge Strorehouse

2011-07-09 Thread Venkatraman S
On Sat, Jul 9, 2011 at 3:32 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > > Or at the very least, we should create a wiki page called "UserBlogs" or > something like that, and add your link along with a brief description (no > more than 1 sentence long - s

Re: Django: AssertionError: The Django RemoteUserAuth middleware requires authentication middleware to be installed

2011-07-09 Thread Venkatraman S
Read the error again please. The errors are *printed* for a reason - reason being for you to read. And sometimes, they also mention how to fix it . On Sat, Jul 9, 2011 at 5:59 PM, pankaj wrote: > Hi, > > Can someone please help to fix this issue? Please let me know if you > need any more info. >

Re: Django: DatabaseError: database is locked

2011-07-09 Thread Venkatraman S
# Sqlite3 comes with its limitations - are you aware of them before using them? # Are you sure that your application logic which messes around with db is clean? -V -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: Questions before switching from drupal to django

2011-07-09 Thread Venkatraman S
Trust me but take this advice : try to develop a simple webapp in django which stores an Item in a table and when requested displays to the user. And if you want , you can also look at sample apps in here , and build along with the instructions: http://www.lightbird.net/dbe/ http://www.djangobook.

Re: Extending User model with Inheritance - Attribute Error

2011-07-10 Thread Venkatraman S
On Sun, Jul 10, 2011 at 1:05 PM, Brent wrote: > Hi all, > > I am attempting to follow this tutorial: > > http://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-with-inheritance/ > > But I am receiving this error: > AttributeError at /login/ > 'NoneType' object has no attribute 'D

Re: (UsingTheMailingList) Pre-requisites for newcomers on Django

2011-07-10 Thread Venkatraman S
+1 from me. (but i see some in IRC who do not know python but start learning it along with Django - so probably we need not be too strict about this clause?) -V -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: (UsingTheMailingList) Pre-requisites for newcomers on Django

2011-07-10 Thread Venkatraman S
Actually, i thought about this a little more...as Brian has suggested, we shouldnt shun away 'prospective' pythonistas. Probably, we can keep the tone a little friendly... -- Do you have *any* experience at all using Python, or understand the basic concepts of how Python work? If n

Re: Emailing submitted forms

2011-07-10 Thread Venkatraman S
On Mon, Jul 11, 2011 at 7:07 AM, Michael Ludvig wrote: > ** > Now I need to not only save the entered values to the db (that works well) > but I also need to send a copy of the submitted form to an email address. > > I wonder if there is an easy way for rendering the form into a static html > emai

Re: CSRF problem with /i18n/setlang/

2011-07-10 Thread Venkatraman S
Have you set the LANGUAGES in settings.py? Something like ... ugettext = lambda s: s LANGUAGES = ( ('de', ugettext('German')), ('fr', ugettext('French')), ('en', ugettext('English')), ) And in urls.py: (r'^i18n/', include('django.conf.urls.i18n')), -V -- You received this message be

Re: Need help intercepting SQL

2011-07-10 Thread Venkatraman S
I am taking a very wild guess, as i have not pored over the docs, but does a middleware which proxies the sqls help you? I think i saw one such in djangosnippets. -V -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Scaling to 30k requests (malcolm box blog)

2011-07-10 Thread Venkatraman S
Thanks for sharing; in my app(which is no way to be compared with any BIG site) i was trying to do some optimizations to make it 'fast' - just to learn more. I used google page-load , YSlow, and DDT to cleanup most of the expensive sql queries and other things related to HTML. I am not using any ki

Re: need help with calling following complex query

2011-07-10 Thread Venkatraman S
On Mon, Jul 11, 2011 at 7:10 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > +1 on raw SQL in this instance. Not exactly, using ORM is pretty easy too. You would do something like this: results.extra(select={ 'distance': '(acos

Re: need help with calling following complex query

2011-07-10 Thread Venkatraman S
On Mon, Jul 11, 2011 at 10:02 AM, sanket wrote: > I think I would go ahead with executing the raw SQL in this case. > The solution by @Venatraman looks interesting too. I would give it a > try. > Raw-sql and the snippet provided by me would end up generating the same sql. One advantage of my sn

Re: Django job, King of Prussia, PA, USA

2011-07-11 Thread Venkatraman S
On Tue, Jul 12, 2011 at 12:38 AM, Shawn Milochik wrote: > http://bit.ly/pAJc4N (Dice.com link) > > We're hiring! If you're local check it out, e-mail me with questions. > Do you consider remote(overseas) candidates? -- You received this message because you are subscribed to the Google Groups

Re: Django form validation.. does anyone else find it awkward??

2011-07-11 Thread Venkatraman S
On Tue, Jul 12, 2011 at 4:26 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Does anyone else find working with form validation in Django to be a bit > awkward and/or tedious? > > I can't say exactly why I don't like it, because I don't really know > myself,

request.method GET or POST

2011-07-11 Thread Venkatraman S
We have to check for request.method to suitably route the request to the logic. Would it be nice if we have something like doGet or doPost(similar to java servlets) that we have in our views, so that the request gets automatically routed , and the code is structured nicely? So a view would look l

Re: Django job, King of Prussia, PA, USA

2011-07-11 Thread Venkatraman S
On Tue, Jul 12, 2011 at 7:40 AM, Kenneth Gonsalves wrote: > On Tue, 2011-07-12 at 07:00 +0530, Venkatraman S wrote: > > On Tue, Jul 12, 2011 at 12:38 AM, Shawn Milochik > > wrote: > > > > > http://bit.ly/pAJc4N (Dice.com link) > > > > > > We&#x

Re: need help with calling following complex query

2011-07-11 Thread Venkatraman S
On Tue, Jul 12, 2011 at 4:36 AM, sanket wrote: > Thanks @Venkatraman, I really appreciate your help. > ability to create a function is pretty cool. > Thanks. Actually, i stumbled on this solution due to my use case - i test all my apps in sqlite3 and then move to other dbs; as it is easy for me

Re: need help with calling following complex query

2011-07-11 Thread Venkatraman S
On Mon, Jul 11, 2011 at 10:36 PM, Jonas Geiregat wrote: > > > > results.extra(select={ > > 'distance': > '(acos(sin(latitude)*sin(%(latitude)f)+cos(latitude)*cos(%(latitude)f)*cos(%(longitude)f-longitude)))' > % { > > 'latitude': latit

Re: Django form validation.. does anyone else find it awkward??

2011-07-12 Thread Venkatraman S
On Tue, Jul 12, 2011 at 1:23 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > On 12 Jul 2011 08:13, "bruno desthuilliers" > wrote: > > > > On Jul 12, 3:37 am, Venkatraman S wrote: > > > > > > On the valid

Re: Django example for searching in address book with over 1000 entries

2011-07-12 Thread Venkatraman S
On Tue, Jul 12, 2011 at 4:23 PM, Gelonida N wrote: > > I'd like to implement a simple django address book Application with over > 1000 entries. > > I'm still struggling whether (and if yes how) to use Ajax or not > for searching a contact. > > Ideally I would start filtering the entries while typ

Re: Django form validation.. does anyone else find it awkward??

2011-07-12 Thread Venkatraman S
On Tue, Jul 12, 2011 at 9:12 PM, Andre Terra wrote: > May I ask if you are managing to do this (and, if so, how) without >> writing duplicate logic? >> > > This, to me, is a key area for improvement. Aside from the development > challenge the idea imposes, an extra issue with writing DRY validati

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

2011-07-12 Thread Venkatraman S
Can you please ..please...please..please record this session!? -V -- 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 django-users+un

Re: Inspecting objects

2011-07-12 Thread Venkatraman S
On Tue, Jul 12, 2011 at 10:55 PM, Lukich wrote: > Hi. I have just started diving into Django and this question came up > - is there a way for me to examine all the attribute values of an > object? In Rails there's such a thing as debug statement which spits > out all the details about the objec

Re: problem submitting form data to database (django)

2011-07-12 Thread Venkatraman S
Can you paste the following database settings from your settings.py? Is it something like this... DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'dbDev.db', 'USER': '', # Not used with sqlite3. 'PASSWORD': '',

Django Internals

2011-07-13 Thread Venkatraman S
Except for the code, is there any good place to start with to better understand the django structure. As in, i am trying to figure out a way by which django can be much leaner, so that the actual footprint is much smaller. Say, if i just want to have a simple website with a handful of models, with

Re: exclude field from SQL insert

2011-07-13 Thread Venkatraman S
On Wed, Jul 13, 2011 at 8:57 PM, Tom Evans wrote: > Models based on views are not explicitly supported, but should work > well in practice (use managed=False in the meta class). Virtual > computed 'fields' are definitely not supported for update/insert. > Nice, i didnt know this. -- You receiv

Re: group by and retrieve to template date from foreinKey

2011-07-15 Thread Venkatraman S
concise reply : I would strongly suggest you to have a look at django-taggit. OTOH, use django-debug-toolbar to diagnose the sql that is being fired. -V -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

Re: Class-Based Generic Views (CreateView) - field exclusions and defaults

2011-07-15 Thread Venkatraman S
Class based views reduce the amount of code written, but i am yet to get a grasp of it(need more experimentation). Somehow, i prefer plain 'old' way of methods in views.py which respond to different urls - it gives me better control and is easily to maintain. -V -- You received this message beca

Re: Class-Based Generic Views (CreateView) - field exclusions and defaults

2011-07-15 Thread Venkatraman S
The below email contents can go into the django wiki? Explained in a lucid manner. Actually, it would be awesome, if someone from this group can volunteer to extract useful text explanations from this ML and put in the wiki. I would have done it, but i lost my password, and i dont see a 'forgot pa

Re: blog breack after 10 post x__x

2011-07-15 Thread Venkatraman S
What you need is a paginator, which paginates through the objects. Try using endless_pagination. Its an awsum app. -V -- 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 unsubsc

Re: trouble going from django on Windows to Ubuntu using Eclipse & Aptana Studio

2011-07-17 Thread Venkatraman S
Well, i would recommend that you use a simple editor(like vim in linux) or Programmer's Notepad(in windows) for development in django/python. It is much easier to develop and also helps you keep your development environment 'lightweight'. An IDE is required only for languages like Java, where ther

Re: POST requests that don't send any data - Django development version 1.4.0 Alpha

2011-07-18 Thread Venkatraman S
Are you missing to 'return' HttpResponse? -V -- 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 django-users+unsubscr...@googlegroup

Re: setting up homepage, and naming/organizing apps

2011-07-19 Thread Venkatraman S
On Tue, Jul 19, 2011 at 9:19 AM, Alex Hall wrote: > > 1. This must be glaringly obvious, but how do I use django to load my > homepage (index.html in the public_html root)? I understand about > views and url matching, but there is no views.py in the main directory > and I am not sure if I am supp

Re: django nani

2011-08-01 Thread Venkatraman S
On Sun, Jul 31, 2011 at 6:56 PM, Vusal Alishov wrote: > Hello, i've problem with django-nani, in admin panel ist of objects > don't shown. > I havent heard of this app/package till now. But, are you getting some error in the console? or did you try contacting the author? (or the mailing list, if

Re: Satchmo, the bloated manatee

2011-08-01 Thread Venkatraman S
On Sat, Jul 30, 2011 at 2:51 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > > This is pretty much the only list I *enjoy* being a part of, and it > probably wouldn't be like this unless certain etiquette was enforced. > > What? Why the "only*? Do they more

Re: Generating urls for a search-engine-like application

2011-08-10 Thread Venkatraman S
On Wed, Aug 10, 2011 at 2:50 PM, samuele.mattiuzzo wrote: > my boss told me to use get requests instead of post, so i could > explicit the parameters, but SEO experts said "NO WAY!". i don't like > get method either, but the reason is different :P > I dont understand SEO reason, can you explain.

Re: Bringing down a website

2010-12-13 Thread Venkatraman S
# For preserving the data, use S3? # Why not handle the 'bad' case in the test cases themselves? # Arent you running the test cases on the box itself? or is it a different entity? (I am not sure how this works on amazon though) -V- http://blizzardzblogs.blogspot.com/ --

Re: I don't get the big picture (admin, etc.)

2010-12-13 Thread Venkatraman S
On Tue, Dec 14, 2010 at 8:55 AM, cocolombo wrote: > I read a lot of documentation and books but there are still some very > basic things that I just don't catch about Django. > The docs and we are here to help :) But only if you spend sometime learning the bits yourselves. > > 1) Should the pla

Re: Djangoweek.ly, a Django weekly newsletter

2010-12-21 Thread Venkatraman S
On Tue, Dec 21, 2010 at 5:30 PM, Jon Atkinson wrote: > > I just wanted to drop a quick note to promote Django Weekly, a new weekly > Django newsletter which I'm putting together. I'm looking to send the first > issue around the 1st of January. Hopefully this will be of interest to some > of the m

Re: python list in django template

2010-12-21 Thread Venkatraman S
On Tue, Dec 21, 2010 at 8:25 PM, Harbhag Singh Sohal < harbhag.so...@gmail.com> wrote: > I am new to python and django. I want to know about how can I display > items of python list in browser using django template. > Suppose I have list days = ['sunday','monday','tuesday'] > Which variable I need

Re: Basic django coding question - how to get totals on a summary screen

2010-12-21 Thread Venkatraman S
http://www.djangobook.com/ Helps in most of the cases. There are couple of solutions: 1) define a custom tag : pass the list as an argument to this function which computes the sum 2) when you are passing the list of items from your view to the template, why not calculate the same in the view itsel

Re: template inheritance problem

2010-12-21 Thread Venkatraman S
Some effort in reading the docs always help. Please spend some time reading the DjangoBook and experimenting with it. For your current Q, did you try writing the code and reading http://www.djangobook.com/en/1.0/chapter04/ properly? Do you understand what you are doing in your view - as in, do you

Re: Excellent Python/Django Opportunity in Atlanta!!!

2010-12-22 Thread Venkatraman S
On Wed, Dec 22, 2010 at 9:05 PM, ATL Recruiter wrote: > > Our client is building a team of world-class Python Developers with > varying degrees of seniority and skills to build a brand new > application that will drive this company to their future-state. > Mentioning the name of the client always

[OT]Code Review As a Service

2011-01-25 Thread Venkatraman S
Hi, I was wondering whether there any freelancers/companies who offer code-review as a service. IMHO, a code review helps in almost all occasions, but the faced paced life seems to have put this in the back burner. Would like your code to be reviewed? If yes, what would be the ideal per hour rate

Re: Code Review As a Service

2011-02-12 Thread Venkatraman S
ink this is a great idea. >> >> Ideally, the charge-rate would be "per lines of code" (excluding >> blanks, of course!). Hours are just, too, "amorphous" in this >> particular case. >> >> On Jan 25, 11:42 am, Venkatraman S wrote: >> > Hi, >>

Re: Django Donations App

2011-03-03 Thread Venkatraman S
On Sat, Feb 26, 2011 at 5:20 AM, Francisco Ceruti < francisco.cer...@gmail.com> wrote: > A few months ago I successfully used this app > https://github.com/johnboxall/django-paypal > > I hope this can help you :) > > @Francisco : can you elaborate or probably write a HOWTO on this app? I tried in

Re: Script to find all non-i18n parts of a django template

2011-03-06 Thread Venkatraman S
On Mon, Mar 7, 2011 at 3:30 AM, Rory McCann wrote: > Link to page: > http://www.technomancy.org/python/django-template-i18n-lint/ > Good stuff. I was planning to write one, but would rather use this ;) IF we make this stuff 'really' good (i mean, handling all false positives etc), then am sure t

Re: Django view without app

2011-03-06 Thread Venkatraman S
On Mon, Mar 7, 2011 at 2:07 AM, Mike Ramirez wrote: > But it also > > > doesn't have it's own data, so an app for this view would be overkill. > How is it overkill? > > Please note that apps do not need to have forms, models, admin access or > even views, it can just be a template tag if you feel

Tracking Model's History

2011-03-06 Thread Venkatraman S
Hi, Similar to the way, the admin tracks the changes, i was looking for something which can be used in my app and stumbled on this . Q is : How efficient is this? I mean, do you see performance problems in your app

Payment Gateways

2011-03-07 Thread Venkatraman S
Hi, Would like to know which payment gateways do people use for managing money movements in their sites? I wouldnt like to go the Paypal way, any other suggestions? -V- -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Organization and User Mgmt

2011-03-07 Thread Venkatraman S
Are there elegant solutions for managing the Organization/Employees/Users in a djanogo-App? OR do i need to create an Organization model and map the 'users' as employee and user and assign suitable permissions? Any tried+tested approaches? -V- -- You received this message because you are subscr

Re: Tracking Model's History

2011-03-10 Thread Venkatraman S
2011/3/10 Tomasz Zieliński > > One of the answers there was to use django-reversion - you can try if > it fits your needs. > It stores previous states of the model instance using XML notation, > which makes it possible to migrate models without loosing history. > Actually, i ended up cloning con

Probable bug - not importing force_unicode silently fails

2011-03-10 Thread Venkatraman S
I stumbled on this 'probable' bug and thought would share it with the group to ensure that it indeed is a bug and not something that i have been hallucinating :) When you try using force_unicode without importing it, the django console does not report an error; for eg, when i was playing around wit

Re: Probable bug - not importing force_unicode silently fails

2011-03-10 Thread Venkatraman S
I did not have the code inside try-catch block. I had a hyperlink (lets say from page A) to another page(B) which was to displayed using 'thickbox'; during the display of this page B, the variables sent to Page B were not being used and i was getting a blank page inside the div(i.e, thickbox ) - s

Re: What is the best server for Django

2011-03-10 Thread Venkatraman S
On Thu, Mar 10, 2011 at 8:51 PM, Tiago Almeida wrote: > I've been using a shared hosting at djangohosting.ch and I am happy. > Lowest plans start at 4€/month, you only have to pay 3 months in > advance. Servers physically in europe (might be important due to > response times) and very simple web b

Re: Simple Django Report Generator

2011-03-10 Thread Venkatraman S
On Fri, Mar 11, 2011 at 6:54 AM, Patrick McDonnell wrote: > Clearly, these kind of reports are trivial for me to hard code using > Django's ORM, but a much more ideal solution would be to provide users with > a (dare I say it) MS Access-like query builder, that would allow them to > choose the co

Re: Simple Django Report Generator

2011-03-11 Thread Venkatraman S
On Fri, Mar 11, 2011 at 9:32 AM, Bruno Tikami wrote: > have you tried Geraldo Reports [0] ? It's flexible, easy to use and worth a > look ;-) > Looks neat - i havent tried it, but does it support non-pdf output too? -- You received this message because you are subscribed to the Google Groups

Re: What is it with Django and 2008?

2011-03-11 Thread Venkatraman S
On Fri, Mar 11, 2011 at 5:59 AM, Benjamin Roberts wrote: > So I don't mean to be confrontational at all. I am learning Django > and really like it. We all do :) > I'm forming a startup and we've already decided > to go with it to build our applications. I think Python/Django is perfect for

Performance of django-tagging or mptt

2011-03-12 Thread Venkatraman S
Hi, I am trying to evaluate django-tagging or taggit for a potential project and was wondering if anyone has done a study on the performance of the respective libs - i mean, performance in terms of scaling. Also, mptt for that matter. Was wondering whether performance of the app would be impacted

Mingus vs Zinnia

2011-03-16 Thread Venkatraman S
Hi, I see both these projects being quiet noteworthy for their features. Any personal experiences using either of them in your projects that members can share -- mainly +/-'s w.r.t extensibility and maintainability. -Venkat -- You received this message because you are subscribed to the Google G

Re: Mingus vs Zinnia

2011-03-16 Thread Venkatraman S
On Wed, Mar 16, 2011 at 4:28 PM, Gabriel - Iulian Dumbrava < gabriel.dumbr...@gmail.com> wrote: > I have no experience with Mingus, but from I've seen on their web > site, it is much simpler. > Does 'simpler' also mean 'easy to extend'? -- You received this message because you are subscribed to

Fwd: [OT] Django Sprint Weekend

2011-03-16 Thread Venkatraman S
Posting this in django-user - I am from India and would be great if we have some local talent in this group who can jam up for a sprint. Otherwise, if remote members want to help, its *always* possible. Contact me offline if interested. -- Forwarded message -- From: Venkatraman S

Re: Django app and Amazon AWS (beginner)

2011-03-16 Thread Venkatraman S
On Thu, Mar 17, 2011 at 12:21 AM, Nate Aune wrote: > > If you want to get your Django app deployed up on Amazon's infrastructure > and don't want to mess around with config files and servers, I invite you to > try out our DjangoZoom service which is built on top of Amazon's AWS > infrastructure.

Re: How to hire a freelance Django developer

2011-03-29 Thread Venkatraman S
On Wed, Mar 30, 2011 at 5:34 AM, Micah Carrick wrote: > That being said, I do need to hire python/django developers and system > admins from time to time to help me out with projects or take something off > my plate. Is there a good *free* resource to browse freelance Django > developers and/or po

Re: Payment Gateways

2011-04-01 Thread Venkatraman S
On Wed, Mar 30, 2011 at 12:19 AM, Micah Carrick wrote: > I have used Authorize.Net for years and don't have a single complaint. > For Python/Django interfacing to Authorize.Net, Quantam, or PsiGate I > use quix.pay, which I also wrote: http://pypi.python.org/pypi/quix.pay/ > Thanks Micah for this

Re: starting a django project

2014-03-19 Thread Venkatraman S
Are you using any tutorials to get started? Also, is this on Windows or Linux - shouldnt be much different; you might have some PATH issues in certain cases. Also, you haven't mentioned if you got any errors/warnings while starting the project. -Venkat @venkasub On Tu

Re: Moving the focus from the 'Save' button to the 'Save and add another' one

2014-03-19 Thread Venkatraman S
To get you started rather then spoonfeeding you : Have you looked at the code which generates this button? Can you think of possible javascript alterations that you can do to change the focus or order? -V On Sun, Mar 16, 2014 at 1:10 AM, vittorio wrote: > My 1.6.2 django app deals with a ware

Re: Django Logging database queries

2014-03-19 Thread Venkatraman S
INSERT/UPDATE/DELETE/SELECT cover almost all types that will be used. What else is getting logged? And what do you mean by 'FAILED' Select queries? Do you mean Timed-out ones? On Thu, Mar 13, 2014 at 12:32 PM, Anju SB wrote: > Dear All, > > I am a newbie in Django programming and developing a

Re: Using Redis as a DB backend for some models (not a caching backend!)

2014-03-19 Thread Venkatraman S
Good Q. Something along the lines of : https://docs.djangoproject.com/en/dev/topics/db/multi-db/ ? Let us know what you find. On Sat, Mar 15, 2014 at 1:10 AM, Alon Nisser wrote: > Can I use redis as a django database for some of my models? I'm aware (and > using) caching with django and redis,

Re: Review needed

2014-03-19 Thread Venkatraman S
Why do you want to do this! It looks complicated and badly formed. -V On Mon, Mar 3, 2014 at 12:11 AM, Kakar Nyori wrote: > Hello, > This may be long, but I really need your help. I have a class *Asset*, > which is the *base class* of another *classes *(like *Photo, Question, > Video etc.*) Ba

Re: Simple User login not working.

2014-03-20 Thread Venkatraman S
I cannot see the screenshot, but two things: 1. Why GET? :-/ 2. Did you check if the users are 'active'? i.e, active flag set? -Venkat On Thu, Mar 20, 2014 at 1:51 AM, Don Fox wrote: > My project has two superusers who have access to the Django Administration > and who manually add about 15 Us

Re: submit buttons in django

2014-03-20 Thread Venkatraman S
Add the required view to redirect once this button is clicked. -Venkat On Thu, Mar 20, 2014 at 9:18 AM, Harjot Mann wrote: > I have a form in my app and after entering data into that form I > submit that form but I want an another submit button like "Submit and > Add Event", so that after click

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-20 Thread Venkatraman S
On Sat, Mar 15, 2014 at 7:11 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Sat, Mar 15, 2014 at 7:19 AM, Jonathan Baker < > jonathandavidba...@gmail.com> wrote: > >> Does that mean that the default="" functionality is implemented by the >> ORM, instead of in the database layer?

Re: [GSOC] Django-based project for the neuroinformatics community: neurostars.org

2014-03-20 Thread Venkatraman S
On Thu, Mar 20, 2014 at 3:46 PM, Roman Valls Guimerà wrote: > At http://incf.org, we launched a Stackoverflow-like website to engage the > > neuroscientific community: > > http://neurostars.org > > > Just curious : Is this based on askbot? Or did you develop the whole thing? -Venkat -- You rec

Re: How allow public query & download of info from my db

2014-03-21 Thread Venkatraman S
On Fri, Mar 21, 2014 at 12:17 AM, Nicholas Tapia wrote: > Hey Django Community! > > I'm newer to programming and was pointed in the direction of django for > this project. > > The idea is that people can make their own custom queries and download > load it from my db. > > So far I'm thinking that

Re: Django and Long Polling

2014-03-22 Thread Venkatraman S
Why not use (async)callbacks? -V On Sun, Mar 23, 2014 at 1:11 AM, Robin Lery wrote: > Hello, > I need to implement long polling in my application to retrieve the events. > But I have no idea how to do it. I know the concept of long polling, i.e to > leave the connection open, until an event oc

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-04-06 Thread Venkatraman S
On Fri, Mar 21, 2014 at 5:43 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Thu, Mar 20, 2014 at 6:50 PM, Venkatraman S wrote: > >> >> On Sat, Mar 15, 2014 at 7:11 AM, Russell Keith-Magee < >> russ...@keith-magee.com> wrote: >> >

Re: User constantly being logged out when using a site with 2 tabs open

2014-04-07 Thread Venkatraman S
Have you set any middleware that allows only one session at a time? On Mon, Apr 7, 2014 at 6:48 PM, Mark Steadman wrote: > Hi. Don't know if this is specific to Django, but my site is the only one > I've experienced this with, and I don't think I'm doing anything special > with session data (ju

Re: Django Dynamic Formsets

2014-04-07 Thread Venkatraman S
Have you tried the jquery formset - works like a breeze for me. On Mon, Apr 7, 2014 at 10:43 PM, Leandro Alves wrote: > Hi, > > I wonder if anyone knows of any example of django-dynamic-formsets [1] > that works with Django 1.6? > > So far all I found on the internet are over 3 years old and th

Re: Django Dynamic Formsets

2014-04-08 Thread Venkatraman S
Actually, there is nothing more to it. Include the js and create the formset_factory and start using it in the template by iterating over it. In the view, post-POST, again iterate over the formsets. Bulk of the work is done by the js and you dont have to do much in django. There is a minor bug in t

Re: Django Dynamic Formsets

2014-04-12 Thread Venkatraman S
Can you try with this : https://gist.github.com/venkasub/10544716 It works for me. Let me know if you have trouble. -V On Wed, Apr 9, 2014 at 4:58 PM, Leandro Alves wrote: > Hi again, > > So I followed the documentation and created a formset as we have there. > https://docs.djangoproject.com/e

Including Page Fragments

2014-04-16 Thread Venkatraman S
Just saw a weird problem while including template fragments: Works : {% include "page.html" with one_variable="1" %} Does not because of the space during the variable assignment : {% include "page.html" with one_variable = "1" %} Regards, Venkat -- You received this message because you ar

Re: Including Page Fragments

2014-04-17 Thread Venkatraman S
https://github.com/django/django/blob/master/django/template/__init__.py > https://github.com/django/django/blob/master/django/template/base.py > > Regards, > Ramon > > On Wed, Apr 16, 2014 at 10:21 PM, Venkatraman S > wrote: > > Just saw a weird problem while including temp

Django and SSL

2014-04-24 Thread Venkatraman S
Hi, Am an SSL newbie and am trying to understand various facets of moving a webapp to ssl. Are there any learnings that the group can share w.r.t moving a django site to ssl? Any pitfalls or things to be careful about. Or is it a totally independent activity with no side effects on the application

Re: Django and SSL

2014-04-24 Thread Venkatraman S
And I prefer being on nginx + uWSGI. On Thu, Apr 24, 2014 at 1:05 PM, Venkatraman S wrote: > Hi, > > Am an SSL newbie and am trying to understand various facets of moving a > webapp to ssl. Are there any learnings that the group can share w.r.t > moving a django site to ssl?

Re: Django and SSL

2014-04-26 Thread Venkatraman S
On Sat, Apr 26, 2014 at 2:46 PM, James Schneider wrote: > If you use a separate subdomain for static content (recommended), even on > the same server, include that as well. > Thanks James. I did not know this(subdomain for static content) was recommended. Why? Regards, Venkat -- You received

Re: [OT]Code Review As a Service

2014-04-27 Thread Venkatraman S
people/team(s) :) Please do get in touch with me in private to discuss more, if it interests you. Regards, Venkat On Tue, Jan 25, 2011 at 3:12 PM, Venkatraman S wrote: > Hi, > > I was wondering whether there any freelancers/companies who offer > code-review as a service. > IMHO

Re: placing views and models in configuration root

2014-04-27 Thread Venkatraman S
On Mon, Apr 28, 2014 at 11:57 AM, Andreas Bloch wrote: > is it bad practice to create a views.py and models.py file and place it in > the configuration root? (the folder that is created when you run > "startproject " which contains the settings, urls, and uwsgi > file") > An unequivocal 'Yes' :)

Re: placing views and models in configuration root

2014-04-29 Thread Venkatraman S
Use nginx and serve static content . Why use django? -V On Tue, Apr 29, 2014 at 12:06 PM, Andreas Bloch wrote: > so what do you when you're making trivial sites, that don't have any > database models, like about-page, landing-page and so on? > would you make a separate app for those and stuff

Re: Subjectively Required Fields

2014-04-29 Thread Venkatraman S
What do you mean by an invalid date? IF you are referring to the date format, then why not enforce a jquery datepicker and let the user choose from it - which would make sure that specified date is 'clean'. If not the above, a closer look at clean() method would help you ;) On Mon, Apr 28, 2014

Re: placing views and models in configuration root

2014-04-29 Thread Venkatraman S
On Tue, Apr 29, 2014 at 12:41 PM, Andreas Bloch wrote: > because they are sites in a bigger django project with multiple apps... > I think you are referring to something like a company website along with a SaaS solution. If yes, there are multiple ways could be done. But a quick solution is obvi

Re: Model Design, Nesting by Year

2014-04-29 Thread Venkatraman S
Why not have separate models for Event and Season and then use an intermediate table to capture the M2M between event occurrences and Person. On Thu, Apr 24, 2014 at 12:43 AM, Christopher Grande wrote: > I'm in the process of designing an internal system and I'm having trouble > designing the mo

Re: Python/Django based Enterprise framowrk

2014-05-01 Thread Venkatraman S
On Thu, May 1, 2014 at 12:24 PM, Kenan Bek wrote: > > So, now, I am looking for frameworks based on Django which will give > features for following issues: > > Django itself is a framework :) > - rich CRUD views generation (list/table, details, edit and create forms) > CBV vs FBV. > - ready

Django on App engine

2014-05-01 Thread Venkatraman S
Hi, Has anyone or is anyone running a reasonably large django webapp on GAE? Looks like it has becomereasonably easier now compare to what it was a few years back. Any experiences? regards, Venkat -- You re

Re: select_related reverse?(!)

2014-05-01 Thread Venkatraman S
Instead of spoon-feeding you, I would recommend using DDT and check out the query that is generated and whether if it satisfies your use-case. By this, you will know how exactly select_related works and also the number of queries that gets fired in the page and what happens once you use this. On

Re: Structuring an API in a large project

2014-05-01 Thread Venkatraman S
On Thu, May 1, 2014 at 9:29 PM, Cezar Jenkins wrote: > Right now I have a large project with an equally large API (done using > django rest framework). The current structure is something like this: > > api > |-urls.py > |-models.py > | > v1 > |-views.py > |-serializers.

Re: Structuring an API in a large project

2014-05-01 Thread Venkatraman S
On Thu, May 1, 2014 at 9:46 PM, Adam "Cezar" Jenkins wrote: > On Thu, May 1, 2014 at 11:10 AM, Venkatraman S wrote: > >> >> >> On Thu, May 1, 2014 at 9:29 PM, Cezar Jenkins wrote: >> >>> Right now I have a large project with an equally larg

Re: There's any package to integrate jquery validation in my model forms?

2014-05-01 Thread Venkatraman S
On Fri, May 2, 2014 at 5:47 AM, Fellipe Henrique wrote: > There's any package to integrate jquery validation in my model forms? > > A side note : crispy-forms and parsley does most of the lifting w.r.t forms for me. -- You received this message because you are subscribed to the Google Groups "

<    1   2   3   4   >