Re: ERP with Supply chain management (incl. POS) and Customer relationship management — What's available?

2012-01-02 Thread Venkatraman S
On Mon, Jan 2, 2012 at 3:15 PM, Alec Taylor wrote: > > So I think building it myself would be my best bet. > > Looking forward to the schema design tutorial of the model layer, > Am not sure what you are hinting at. First define the business processes and then start d

Re: django/Data Base Advice

2012-01-04 Thread Venkatraman S
On Wed, Jan 4, 2012 at 6:50 PM, Andre Terra wrote: > You won't need to write raw SQL in Django until you've reached a big > bottleneck, and one that can't be solved in any other way. Writing raw SQL > is exactly what Django wants you to *stop* doing. The ORM doesn't only > exist in order to speed

Re: Since Django has its own database schema, can we still use sqlalchemy instead?

2012-01-08 Thread Venkatraman S
On Sun, Jan 8, 2012 at 9:49 AM, Chen Xu wrote: > > Since Django has its own database schema, can we still use sqlalchemy > instead? > Just to correct the nomeclature : Django has an ORM, and *NOT* a database schema. An application has its own schema. And to answer the 'modified' Q : django's orm

Re: Best Practices for Outsourcing Partial Development?

2012-01-16 Thread Venkatraman S
On Tue, Jan 17, 2012 at 6:30 AM, cjwalter wrote: > This is why I would appreciate to hear about experiences traveling > this road. What worked and what didn't? > Have never been a fan of elance etc; you should be lucky to find a good set of 'trained hands' there. The best would be to ask around

Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread Venkatraman S
http://www.lightbird.net/dbe/ has some neat hands-on tutorials. -Venkat -- 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-us

Re: Model-driven Django development

2012-01-22 Thread Venkatraman S
On Sat, Jan 21, 2012 at 9:20 AM, Alec Taylor wrote: > At University I've learned various techniques for model-driven > developments, such as: > - Class diagrams (generate code) > - ERD Diagrams (generate db code [e.g. SQL]) > > Can any of these sorts of—or for that matter, any sort of—model-drive

[X-POST] Fwd: [Ilugc] SQL Injection vulnerability in Ruby on Rails forces websites to close down

2013-01-09 Thread Venkatraman S
FYI: -- Forwarded message -- From: Natarajan V Date: Thu, Jan 10, 2013 at 10:49 AM Subject: [Ilugc] SQL Injection vulnerability in Ruby on Rails forces websites to close down To: ILUG-C Hi, A major security vulnerability found in RoR has forced a government website to close do

Re: urls.py not loading changes

2013-03-04 Thread Venkatraman S
Always prefer to delete the .pyc fie for issues such as these wherein changes are not reflected despite server restart. On Sun, Mar 3, 2013 at 9:59 PM, Serge G. Spaolonzi wrote: > Maybe the server is loading an old .pyc file. try to delete the urls.pyc > file and restart the server. > > > On Sun,

Re: Benchmarking and timing DB transactions in Django

2013-03-04 Thread Venkatraman S
On Fri, Feb 22, 2013 at 4:48 PM, R R wrote: > > I was wondering if there are any tools to benchmark DB transactions using > the Django ORM. I'm using PostGreSQL with Django 1.4. I'm required to > compare and come up with the best possible database design for a project > which will have millions o

Re: error in filling data in dtabase through admin page..

2013-03-04 Thread Venkatraman S
On Fri, Mar 1, 2013 at 12:32 PM, Avnesh Shakya wrote: > hi, i have got one error during adding data in database though admin page, > actually it was working fine, but i made some attributes optional, now it's > generating error.. > i m adding m models.py ,plz help me.. > No one will have the pati

Re: Is there a way to list users that have logged in within the pass 30 minutes

2013-03-04 Thread Venkatraman S
If your website is massive, the following can cause latency issues(also hang!). Check what the SQL that gets generated using the django-debug-toolbar to get some more cues. On Mon, Mar 4, 2013 at 7:35 PM, frocco wrote: > Thanks for your input, I found this on google also. > > def get_all_logged_

Re: urls.py not loading changes

2013-03-04 Thread Venkatraman S
Well, it so happens that when you ftp the file from your local box to a remote machine the timezones are mostly different. For eg. i am in India and we are 'ahead' of the US, so when i push my code to a server in US timezone, i see this problem most often. On Mon, Mar 4, 2013 at 8:26 PM, Bill Free

Re: Is there a way to list users that have logged in within the pass 30 minutes

2013-03-04 Thread Venkatraman S
Even then, its till a 'code'. You admin might not even load :) On Mon, Mar 4, 2013 at 8:33 PM, frocco wrote: > I plan on using this only on the admin side. > > On Monday, March 4, 2013 9:18:59 AM UTC-5, Venkatraman.S. wrote: >> >> If your website is massive, the following can cause latency issue

Survey : Theme for Django admin interface

2013-03-09 Thread Venkatraman S
Hi, Was wondering if there are *paid* takers for themes for the django-admin interface. I know there are a few that exist already but am not quite happy with them. I can definitely spend a few days/weeks and develop some nice looking ones, but wanted to check if people are really looking for some

Re: Survey : Theme for Django admin interface

2013-03-10 Thread Venkatraman S
On Mon, Mar 11, 2013 at 3:49 AM, Emiliano Dalla Verde Marcozzi < e...@fedoraproject.org> wrote: > > I was looking for this, but didnt find anything. i think it can have a > great market, something like > this web: > https://wrapbootstrap.com/theme/unicorn-admin-template-WB0F35928 > For me, a reaso

Avoiding Sessions

2013-03-27 Thread Venkatraman S
So, if i am right, usage of sessions makes an extra call to the DB for every view with login_required. SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."emai

Re: Navigation Bar

2013-03-27 Thread Venkatraman S
On Wed, Mar 27, 2013 at 5:55 PM, Simon Shaw wrote: > I am Django/Web newbie developer and I am looking for the correct way to > add a navigation bar (hopefully the correct term) to my ticketing app such > that the options "Admin", "Open New Ticket", "View New Ticket", > "Dashboard", "Logout" will

Re: Avoiding Sessions

2013-03-27 Thread Venkatraman S
7, 2013 at 7:28 PM, Shawn Milochik wrote: > Use django-redis-sessions as a back end instead of the database. > On Mar 27, 2013 9:35 AM, "Venkatraman S" wrote: > >> So, if i am right, usage of sessions makes an extra call to the DB for >> every view with log

Re: Django payment gateway with subscription management

2013-03-27 Thread Venkatraman S
And any other options other than that .. to be used Internationally? I know of ... chargify, ccavenue, spreedly, fusebill, merchee, cheddargetter, chargify, zuora etc. Am trying to do a comparison between all these possible services in terms of their fees and also features. On Wed, Mar 6, 2013 at

No multiple calls while iterating the queryset in template

2013-03-27 Thread Venkatraman S
Interesting Observation: So, am passing a queryset to my template and based on the way a field in the record 'starts-with', i am rendering the record into different 'tables' in the view. Something like: {% for record in settings %} {%if record.type|starts_with:"EMAIL_" %} ...show record det

Webfaction vs DigitalOcean

2013-04-02 Thread Venkatraman S
I know Webfaction has been a favourite for many of us, but was wondering if anyone moved to DO from Webfaction and has any praises to sing. Any feedback? -Venkat -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group an

Re: Webfaction vs DigitalOcean

2013-04-02 Thread Venkatraman S
anything you want, however you want, where > instances can be deployed fast (a bit like amazon AWS). > > It is a tradeoff between easy to use and control. > > Regards, > Carlos Ruvalcaba > > > On Tue, Apr 2, 2013 at 10:31 AM, Venkatraman S wrote: > >> I know Webfaction h

django-filetransfers and HttpResponseRedirect

2013-04-03 Thread Venkatraman S
I use django-filetransfers in my app and had a quick Q on one of the comments by the author in this post : http://www.allbuttonspressed.com/projects/django-filetransfers He mentions "Note that it's important that you send a redirect after an upload. Otherwise, some file hosting services won't work

Re: How to change the {{ form.as_table }}

2013-04-08 Thread Venkatraman S
Also, do have a look at crispy-forms. -Venkat On Mon, Apr 8, 2013 at 7:59 AM, Ben Carleton wrote: > You can use the label attribute on your form fields to override the > default labels: > > dn = forms.CharField(label="dn") > cv = forms.CharField(label="cv") > > -- Ben > > > On 4/7/2013 10:11

Need Advice: Sending Emails

2013-04-11 Thread Venkatraman S
Am sure many in this mailing list are running websites that send emails to customers from their django applications. And also emails from the operating system(like logwatch etc). I was wondering how you do you achieve both? For example, when i use a gmail id, i see that i am able to send an email

Re: Need Advice: Sending Emails

2013-04-11 Thread Venkatraman S
her case it is open relay. > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > > On Thu, Apr 11, 2013 at 9:37 PM, Venkatraman S wrote: > >> >> Am sure many in this mailing list are running websites that send emails >> to custom

Re: Need Advice: Sending Emails

2013-04-12 Thread Venkatraman S
kype: skhohlov > > > On Fri, Apr 12, 2013 at 9:05 AM, Venkatraman S wrote: > >> Well, my Q what should i do so that i get 'delieverd' emails from both >> django apps and also *nix processes. >> >> >> On Fri, Apr 12, 2013 at 11:11 AM, Sergiy Khohlov

Re: Need Advice: Sending Emails

2013-04-12 Thread Venkatraman S
On Fri, Apr 12, 2013 at 10:51 PM, Kurtis Mullins wrote: > Check out sendgrid. If you use Rackspace I think they even give you a good > discount. > Yes, they are called as "ESP" - Email Service Provider. And I have thought about them. Looks like this is the only way possible if i want to confirm

Re: Understanding users auth in Django

2013-04-14 Thread Venkatraman S
I've done something similar for my own personal project and i can share how i did it: I used the Django User. And then created a ProfileDetails model that has a OneToOneField with User. An Organization Model An Employee Model - Contains FK to Organization and User Also, i did implemented my own p

Re: Pagination with file upload (MultiValueDictKeyError)

2013-04-15 Thread Venkatraman S
On Tue, Apr 16, 2013 at 10:40 AM, wrote: > I have a simple form that takes a user upload, queries a database, and > displays results in a table. I receive the following error whenever I try > to go to the second, third, fourth, etc page: Why are you querying the DB? You mean, once the file upl

Re: Using .extra after using .annotate is not working

2013-04-16 Thread Venkatraman S
On Tue, Apr 16, 2013 at 1:39 PM, Shabda Raaj wrote: > I am trying to get a field in a queryset which depends on the result > of the annotations. I tried using extra on an annotated queryset, > which doesn't seem to work. > Does something like this work? .annotate(average_=Avg('model__'))

Re: a wired problem with Debug for django1.5.1

2013-04-22 Thread Venkatraman S
On Mon, Apr 22, 2013 at 8:30 AM, liu li wrote: > > When Debug = False, all of things are working fine, > > when Debug = True, browser got an error with 500 > > so do you know why? > > I am using nginx to handle all of static files like css,img > Is INTERNAL_IPS / ALLOWED_HOSTS set? -V @venkasub

Template Caching with Messages

2013-04-24 Thread Venkatraman S
It looks to me that when i use a file based caching, and if append messages in my templates(based on user action), that particular page(with message) also gets cached. Since 'these' pages would never be created again, what is the best possible option? (Well, i just used file-based cache to quickly

Re: Template Caching with Messages

2013-04-26 Thread Venkatraman S
I find testing in dev server(runserver) using a filebased cache is the easiest and quickest way to test. One can delete the files and check if and when new entries are created in the folder. -V On Fri, Apr 26, 2013 at 6:58 PM, Chris Lawlor wrote: > V, > > You're exactly correct - make sure you o

Re: django-filetransfers and HttpResponseRedirect

2013-04-28 Thread Venkatraman S
Following this up... any thoughts? On Thu, Apr 4, 2013 at 9:34 AM, Venkatraman S wrote: > > I use django-filetransfers in my app and had a quick Q on one of the > comments by the author in this post : > http://www.allbuttonspressed.com/projects/django-filetransfers > > He m

Re: django-filetransfers and HttpResponseRedirect

2013-04-29 Thread Venkatraman S
On Mon, Apr 29, 2013 at 3:43 PM, Shawn Milochik wrote: > Use HttpResponseRedirect, as you mention in your subject line. > Question is 'why'? -V -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Multi-tenant database model with new user model?

2013-05-02 Thread Venkatraman S
I think i had stumbled on django-multitenant or django-simple-multitenant sometime back. I took some ideas from there and implemented my own version of custom multi-tenancy. On Wed, May 1, 2013 at 8:31 PM, Dan Gentry wrote: > Something I'm looking forward to learning as well. My app uses the o

Re: [Announce] Django Graphos - Django charting made *really* easy

2013-05-05 Thread Venkatraman S
Looks good.You may also want to have a look at Jacobian's google-chart[ https://github.com/jacobian/django-googlecharts ] for some inspiration with the code. I loved the way he makes it so simple. Also, as you know, the problem with most charting dashboards is the ability to change the view(i.e, g

Re: How many workers do you run on one machine using django celery?

2013-05-06 Thread Venkatraman S
Do also check out uWSGI spooler - i haven't tested with heavy loads yet, but looks to do the work for a reasonably small site. -V @venkasub On Sun, Apr 21, 2013 at 8:37 PM, sparky wrote: > wow, some good advice here thanks. I tested with RabbitMQ and its fast, > all

Re: Django and apache

2013-05-12 Thread Venkatraman S
What i am going to suggest is totally orthogonal to your requirement as i am not helping you with apace+mod_wsgi. Though this generally works, but i think you should consider nginx if you are thinking about new deployments or learning this skill. And the reasons why i suggest nginx? Well.. 1. extr

Re: Django and apache

2013-05-12 Thread Venkatraman S
Set STATIC_ROOT in your settings.py and run 'collectstatic'. You need not mention in your /static/admin /usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin in your apache conf then. On Mon, May 13, 2013 at 7:16 AM, Stanley Agba wrote: > Thanks Guys, > The server is up and running w

Re: Forcing group_by on a field other than id

2013-05-14 Thread Venkatraman S
I assume you want to count the number of records based on the date; or in other words, number of times a song is played grouped by date..right? If yes, does something like this help: Item.objects.extra({'created':"date(created_date)"}).values('created').annotate(created_count=Count('id')).order_by

Re: how to create google app for login in django project?

2013-05-17 Thread Venkatraman S
I assume you are referring to using Google's auth scheme, if yes, then: https://github.com/omab/django-social-auth is your friend. If you are referring to Google App Engine, then am not sure what your question is. -V @venkasub On Fri, May 17, 2013 at 3:46 PM, Avnesh S

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Venkatraman S
On Tue, Apr 12, 2011 at 11:12 AM, Anoop Thomas Mathew wrote: > http://osqa.net/ > askbot is a better implementation of osqa. http://blizzardzblogs.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Hyperlinks in Messages

2011-04-26 Thread Venkatraman S
Hi, How can i include hyperlinks in the messages?(am using the messages framework). The hyperlinks dont seem to get rendered; am getting the text'd version of the HTML. -Venkat -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Experience of migrating a Django site to DotCloud

2011-04-26 Thread Venkatraman S
On Wed, Apr 27, 2011 at 10:34 AM, Olli Wang wrote: > I have migrated my Django site to the new PaaS provider DotCloud. I > think it's a pretty good choice if you want to deploy your Django on > the cloud. > > You can see the full article at > http://www.ollix.com/blog/2011/04/25/migrating-django-

Using User.add_to_class

2011-04-27 Thread Venkatraman S
Hi, In my app, i have many functions added to the User class using User.add_to_class ; these are basically the functions that restrict the objects that can be viewed by the user during his session with the app. The functions are present in __init__.py in my project. My Q : is this a good paradigm

Re: Using User.add_to_class

2011-04-28 Thread Venkatraman S
Resending : On Wed, Apr 27, 2011 at 4:13 PM, Venkatraman S wrote: > Hi, > > In my app, i have many functions added to the User class using > User.add_to_class ; these are basically the functions that restrict the > objects that can be viewed by the user during his session wi

Re: performance of model instgance save()

2011-05-10 Thread Venkatraman S
On Wed, May 11, 2011 at 4:51 AM, Brian wrote: > Having hauled myself a few feet up out of the abyss of ignorance, I can > answer my own question (which might be of benefit to others getting started > with django). To clarify the problem, I have a standalone script that > imports the django settin

Re: Can django admin log be trusted?

2011-05-10 Thread Venkatraman S
On Wed, May 11, 2011 at 4:56 AM, Shawn Milochik wrote: > > 1. I have a post_save signal listener and I dump the info about each model > instance with a timestamp and the pk of the user to MongoDB each time. The > main reason is for auditing purposes, but you can also use this data to > recreate m

django-simple-history

2011-05-10 Thread Venkatraman S
Hi, I am trying to use django-simple-history [ https://bitbucket.org/q/django-simple-history ] for keeping an audit log of some of my tables; and was wondering how the current logged-in users info can be captured in this scheme. django-audit-log claims to capture the user information, but i see th

Re: Logging view exceptions: A tip and a question.

2011-05-11 Thread Venkatraman S
On Tue, May 10, 2011 at 11:42 PM, Shawn Milochik wrote: > > Assuming performance won't be a major concern, I'd like to decorate all my > views automatically. My first thought was middleware, but since it handles > requests and responses, I don't think it's the right layer. Does anyone know > the

Re: uber weird access problem from windows

2011-05-20 Thread Venkatraman S
On Sat, May 21, 2011 at 10:37 AM, Kenneth Gonsalves wrote: > > The form is no different from any other form - in fact it is cut and > pasted from another form which works perfectly. Has anyone faced a > problem like this? Any clues on how to diagnose? > Clear cache and try. -- You received this

Re: django-cms and photologue

2011-05-27 Thread Venkatraman S
On Fri, May 27, 2011 at 5:32 PM, Dave Sayer wrote: > > I have a question relating to integrating django-photologue with > django-cms. I have added the cmsplugin-photologue app and am now > attempting to add the relevant tags to my templates. The trouble is, > is that I can't seem to find the corr

Re: Get all reverse related objects.

2011-06-11 Thread Venkatraman S
On Sun, Jun 12, 2011 at 12:10 AM, Marc Aymerich wrote: > > But, I'm wondering if django provides some generic mechanism to do the > invers relation? it is,given a Model_C object get all related Model_A > and Model_B objects. > Like this : https://docs.djangoproject.com/en/dev/ref/contrib/content

Re: Multiple UserProfile

2011-06-11 Thread Venkatraman S
On Sun, Jun 12, 2011 at 6:42 AM, Ignacio Soto wrote: > No, the same person cant be costumer and seller. > Then why not have a 'type' in your profile which tracks the user type? -V http://blizzardzblogs.blogspot.com/ -- You received this message because you are subscribed to the Google Groups

Re: Django-based daily deals aggregator

2011-06-11 Thread Venkatraman S
On Fri, Jun 10, 2011 at 10:02 AM, Dealshelve (deals aggregator) < dealshe...@gmail.com> wrote: > We are working on a Django-based project at http://dealshelve.com (hosted > by WebFaction) with the hope to aggregate daily deals from as many group > buying sites as possible. We plan to make our aggr

Looking for recommendations for Custom Forms from Admin

2011-06-25 Thread Venkatraman S
Hi, Was looking for possible django apps that help one build custom forms "on the fly" from the admin screens. Venkat -- 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 unsubs

Re: Looking for recommendations for Custom Forms from Admin

2011-06-25 Thread Venkatraman S
On Sat, Jun 25, 2011 at 7:56 PM, Matthias Kestenholz wrote: > You might want to have a look at form_designer: > > https://github.com/matthiask/form_designer > > It contains a FeinCMS content type (form_designer.models.FormContent), > the rest of it isn't FeinCMS-specific. A FeinCMS installation i

Re: Looking for recommendations for Custom Forms from Admin

2011-06-25 Thread Venkatraman S
On Sat, Jun 25, 2011 at 8:17 PM, Venkatraman S wrote: > > > On Sat, Jun 25, 2011 at 7:56 PM, Matthias Kestenholz wrote: > >> You might want to have a look at form_designer: >> >> https://github.com/matthiask/form_designer >> >> It contains a FeinCMS cont

Sidebars

2011-06-26 Thread Venkatraman S
Hi, I was looking for possible suggestions in implementing sidebars - i have a truck load of screens and need the sidebar to change dynamically base don the view. Most of the siderbar-conten is just links. I was thiking of including the various sidebar options in the base.html and then include a

Re: questionnaire

2011-06-27 Thread Venkatraman S
On Mon, Jun 27, 2011 at 12:19 PM, Coulson Thabo Kgathi wrote: > want to create a questionnaire and answers such that one question > appears on the screen at a time and once the answers is selected then > the it's saved then the next question is shown the answers to the > questions are strictly rad

Re: Django widget popup

2011-06-27 Thread Venkatraman S
On Sat, Jun 25, 2011 at 6:51 AM, GKR wrote: > Please help > Did you try contacting the author on github? -- 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 t

Re: Sidebars

2011-06-28 Thread Venkatraman S
whole thing "classy"). > > > > > (hand typed code, may need re-writing) > > > > > --- views.py --- > > > page = "dashboard/help/users" > > > > > RequestContext(request, { > > > 'section' : page.split(&quo

Re: Sidebars

2011-07-04 Thread Venkatraman S
d/help/users" > > RequestContext(request, { > 'section' : page.split("/") > } > > --- layout.html --- > {% if section.0 = 'dashboard' %} > display stuff relating to dashboard only > {% if section.1 = 'help' %} > display st

Re: i save text with html in djanfo admin and when out its ilegible

2011-07-04 Thread Venkatraman S
On Mon, Jul 4, 2011 at 10:12 PM, Andres Pardini wrote: > i follow this tutorial for rich text editor > > http://lazutkin.com/blog/2011/mar/13/using-dojo-rich-editor-djangos-admin/ > How is this when compared with tinymce? -V http://blizzardzblogs.blogspot.com/ -- You received this message bec

Re: Sidebars

2011-07-04 Thread Venkatraman S
On Mon, Jul 4, 2011 at 5:10 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > On a side note, you could have also used fixed/absolute positioning of > the element, then used jQuery show() and hide() to show the menu bar > if someone clicks on the pull out tab.

Re: ANN: django-iadmin

2011-07-04 Thread Venkatraman S
On Mon, Jul 4, 2011 at 6:25 PM, Stefano Apostolico wrote: > > I would like some feedback on > https://github.com/saxix/djangoscreenshots-home-page-iadmin > . > > Documentation in progress, but demo application included. > > Suggestions and comments are wel

Avoid DB hit while using messages

2011-07-05 Thread Venkatraman S
I am showing messages using the messaging framework; so i check if there are any messages in my base.html (i.e, {% if messages %} ) and if yes i show the messages with suitable styling. Messages are being rendered fine and i do not have any problem with that. But i see that , accessing 'messages'

Complex Query help - get items from the org to which the user belongs

2011-07-05 Thread Venkatraman S
I tried asking around in IRC, and stumbled on a few possible solutions, would be great if someone shed some more light: I have the following models: class Organization(models.Model): name= models.CharField(max_length=100, blank=False) class Employees(models.Model): org

Re: Complex Query help - get items from the org to which the user belongs

2011-07-05 Thread Venkatraman S
On Wed, Jul 6, 2011 at 2:26 AM, Marc Aymerich wrote: > Say there are 3 Users in an org : A, B and C with each creating 3,4,5 items > respectively, and 'A' is the current user; then i need a query which returns > all these items(i.e, 12 items) when i supply A.. > > Item.objects.filter(employees__o

Re: I need to do reports, and I would like reports that are integrated with django admin.

2011-07-05 Thread Venkatraman S
On Wed, Jul 6, 2011 at 3:23 AM, Kase wrote: > > I have no problem to make my pages with reports of objects, but I like > that are integrated with django admin, in the same tuple in the object > list. > > any suggestions? > Did you try creating a page and showing the information there - for eg. y

Re: Multiple Databases

2011-07-05 Thread Venkatraman S
On Tue, Jul 5, 2011 at 6:39 PM, Nick wrote: > However, i also > need to support dynamic database creation - i.e. one or more databases > created from a single model (think of these as customer specific > databases). I will be using sqlite and want to save the path/ > connection details of the dyn

Re: Complex Query help - get items from the org to which the user belongs

2011-07-05 Thread Venkatraman S
On Wed, Jul 6, 2011 at 12:36 AM, Venkatraman S wrote: > I tried asking around in IRC, and stumbled on a few possible solutions, > would be great if someone shed some more light: > > I have the following models: > > class Organization(models.Model): > name

Re: Complex Query help - get items from the org to which the user belongs

2011-07-05 Thread Venkatraman S
On Wed, Jul 6, 2011 at 8:39 AM, Venkatraman S wrote: > > On Wed, Jul 6, 2011 at 12:36 AM, Venkatraman S wrote: > >> I tried asking around in IRC, and stumbled on a few possible solutions, >> would be great if someone shed some more light: >> >> I have

Re: Complex Query help - get items from the org to which the user belongs

2011-07-06 Thread Venkatraman S
On Wed, Jul 6, 2011 at 2:10 PM, Marc Aymerich wrote: > This one should work: > Items.objects.filters(created_by__employee__org=A.org) > Nope. Emp has a FK for User, not the other way round. -- You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Complex Query help - get items from the org to which the user belongs

2011-07-06 Thread Venkatraman S
On Wed, Jul 6, 2011 at 8:09 PM, Marc Aymerich wrote: > I swear this time it will work! > > Item.objects.filter(created_by__employees__org__in=u.employees_set.all().values_list('org')) > > I cried on seeing this ;) Thanks a tonne. Guess this will go into the django hall of fame! But i have a Q :

Re: Django vs Sproutcore

2011-07-06 Thread Venkatraman S
On Wed, Jul 6, 2011 at 10:06 PM, Graeck wrote: > On Jul 6, 9:21 am, Shawn Milochik wrote: > > My limited understanding of Sproutcore is that it isn't an alternative > > to a Web framework, but more a way to create pretty front ends for > > your Web applications. > > Ok, so sounds like Sproutcore

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Venkatraman S
On Thu, Jul 7, 2011 at 6:17 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Tbh, it would be easy enough to create a web front end, similar to SO, > which uses django-users archive as a backend. Sure it'd be read only to > begin with.. and im not sure how yo

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

2011-07-06 Thread Venkatraman S
On Thu, Jul 7, 2011 at 1:43 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > I've created a place holder on Github for this. > > Unsure what to call it yet, so it's temporary name is Jennifer. > > https://github.com/foxx/jennifer > > Future name suggestions a

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Venkatraman S
On Thu, Jul 7, 2011 at 8:17 AM, Venkatraman S wrote: > I would recommend having a repository of django articles which can be > searched upon easily with good features added to it (for eg facets etc) - > ideally if this is hosted at djangoproject - then it would be ideal. > And I

Django Knowledge Strorehouse

2011-07-06 Thread Venkatraman S
Hi All, Probably i am jumping the gun, but i am very much ready to volunteer to develop and host a django article repository. The repository would be HIGHLY curated and store extremely useful articles and snippets. We already have djangosnippets - so was wondering if we can index this and use it

Re: Complex Query help - get items from the org to which the user belongs

2011-07-06 Thread Venkatraman S
I am doing some bechmarking on the performance of both the versions of the query: 1. Item.objects.filter(created_by__employees__org__in=u.employees_set.all().values_list('org')) and 2. Items.objects.extra(where=['created_by_id in (select e.user_id from myapp_employees e, myapp_organization o where

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

2011-07-06 Thread Venkatraman S
On Thu, Jul 7, 2011 at 9:40 AM, Roberto De Ioris wrote: > http://cloudsilverlining.org/ > This looks more like a deployment configuration script than compiling into a binary. I would be very much interested in the latter. Thanks for sharing though. -V -- You received this message because you

Display FK List

2011-07-07 Thread Venkatraman S
i have 2 models: Items and a Transactions . Transactions has a fk to Items. Now, there can be millions of Items, and when i render Transaction as a modelform, i see that all the Items are being fetched - and this is quiet a lot of txt being sent over the wire. Is there an efficient way of associat

Re: Speed of search question

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 11:45 AM, Benedict Verheyen < benedict.verhe...@gmail.com> wrote: > > I'll see if I can make a test script to test this. > It's actually a good idea to put in a performance test of some sorts. > I have much complex relationships, and i dont see any peformance issues. -V

Re: Speed of search question

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 3:01 PM, Marc Aymerich wrote: > https://github.com/robhudson/django-debug-toolbar/commits/master/ > DDT rocks. Btw, does this fork have any special features when compared with the Master? -V -- You received this message because you are subscribed to the Google Groups "

Re: Complex Query help - get items from the org to which the user belongs

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 3:49 PM, DrBloodmoney wrote: > On Thu, Jul 7, 2011 at 12:04 AM, Venkatraman S wrote: > > I am doing some bechmarking on the performance of both the versions of > the > > query: > > 1. > > > Item.objects.filter(created_by__emplo

Re: Django Knowledge Strorehouse

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 6:50 PM, Tom Evans wrote: > Thinking 'but we can make our own Q&A site' is foolish. See Jeff > Attwood's post on the same subject: > I wouldnt do this and am in no way going to be doing this. Instead, i am suggesting an ArticleBase.

Re: Django Knowledge Strorehouse

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 6:50 PM, Tom Evans wrote: > Do you intend to revalidate every article and snippet on every django > release? > How will you do that, will each snippet/article be required to have > testcases? > Who will write the testcases? > Test cases are required only when they *are* re

Re: Display FK List

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 7:19 PM, urukay wrote: > maybe autocomplete will user frendly solution. > Yup - i just got this working with ajax-selects. Thanks. -V http://blizzardzblogs.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 8:42 PM, Andre Terra wrote: > So basically, if SO emailed you new questions tagged as 'django' and > your replies were posted as answers, you would be okay? > Guys, SO, mailing lists, IRC etc are different channels for communication; and no ONE channel alone can be usefu

Django Debug Toolbar

2011-07-07 Thread Venkatraman S
If you are *not* developing RIA applications, then this is a MUST app in your workspace. I have reduced the number of queries in some of my pages from 40+ to 4+ and i can see HUGE performance benefits. Also, more importantly, this has *significantly* improved my design skills. -V -- You received

Re: django/python performance vs play/java

2011-07-07 Thread Venkatraman S
On Wed, Jul 6, 2011 at 7:21 PM, akaariai wrote: > > The best way to check where your performance problems come from is > using profiling. > > In my experience, the most likely things to cause you performance > problems in Django are database queries and template rendering. If > template rendering

Re: Django Knowledge Strorehouse

2011-07-07 Thread Venkatraman S
On Fri, Jul 8, 2011 at 5:20 AM, Russell Keith-Magee wrote: > So -- my humble suggestion: If you think there is a need for improving > Django documentation, I wholeheartedly agree. There's plenty of room > for improvement in Django's docs. But the place to start isn't to > write a massive technica

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

2011-07-07 Thread Venkatraman S
2011/7/8 Bjarni Rúnar Einarsson > >http://pagekite.net/wiki/Floss/PyBreeder/ >https://github.com/pagekite/PyBreeder > > It's basically a small tool for combining multiple .py files into one. > It's trivial I know, but I looked all over and couldn't find anything quite > like it, so I ende

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

2011-07-08 Thread Venkatraman S
On Fri, Jul 8, 2011 at 7:54 PM, Brian Bouterse wrote: > I have also heard of folks using pypy in production serving django sites, > so I think Django is ready for this. Interesting. Can you share more on this. Any caveats/tradeoffs? -V -- You received this message because you are subscribed

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

2011-07-08 Thread Venkatraman S
And btw, AlexGaylnor, recently wrote a python decompiler; probably this can be leveraged ? -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@googlegro

Re: django/python performance vs play/java

2011-07-08 Thread Venkatraman S
On Fri, Jul 8, 2011 at 8:03 PM, akaariai wrote: > > Trying jinja2 in your project is hard - you are using some template > tags, and you would need to port them to jinja2. Then you would need > to rewrite your templates so that they work under jinja2. This would > take some time for sure. > > What

Using Jinja2

2011-07-08 Thread Venkatraman S
On Fri, Jul 8, 2011 at 8:03 PM, akaariai wrote: > > Trying jinja2 in your project is hard - you are using some template > tags, and you would need to port them to jinja2. Then you would need > to rewrite your templates so that they work under jinja2. This would > take some time for sure. > > What

<    1   2   3   4   >