Benchmarking and timing DB transactions in Django

2013-02-22 Thread R R
Hi, 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 of records when it's deployed. I'd love to hear you

Packaging django, python and a project for one click setup on a windows machine

2013-04-05 Thread R R
Hi, is there a way to package Python, Django and a Django Project which will enable the user to set it up with just one click? What i'm intending to do is to send it to couple of people who will set it up on their windows machines and then click on a desktop icon which will run the runserver comma

External API call is rejected when using gunicorn

2013-12-13 Thread R R
Hi, I was using SOAP API successfully on my development machine, and it worked as expected when I was trying out on my VPS. I was using *django runserver* until this point, but when I ran it with gunicorn, the service started to reject the calls. The response is in XML format, but when it's run w

Re: Email error reporting not working

2009-05-25 Thread r.
Is the EMAIL_HOST (and related variables) set in the settings.py file? On May 25, 9:19 am, Rex wrote: > Hi, > > I am having trouble getting error reporting via email to work (as > described herehttp://docs.djangoproject.com/en/dev/howto/error-reporting/ > ). When I hit a 500 error, no email reac

world LIVE sex sex free free

2008-02-16 Thread r
world LIVE sex sex free free world sex sex free free world sex sex free free http://vigaragirls.blogspot.com/ world LIVE sex sex free free world LIVE sex sex free free --~--~-~--~~~---~--~~ You received this message because you

Re: disguising a django app as php?

2007-09-26 Thread r
;s a handy framework. There's a lot of frameworks that may make your life easier, pre-designed. Use this as an opportunity to write DjangoPHP, or DjangoCI, a django library/plugin for code igniter.Or DjangoZF for zend framework. Get famous. -r --~--~-~--~~--

Re: disguising a django app as php?

2007-09-26 Thread r
let because it'll be better for all concerned. -r --~--~-~--~~~---~--~~ 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 f

Re: Django deployment à lá Capistrano

2007-09-27 Thread r
ication, etc etc, for their bloated deployment model. Django is just the familiar apache server mod_python with prefork MPM for any number of django applications. This is one of the main attractions of django, imho. -r --~--~-~--~~~---~--~~ You received this m

Need help with mod python

2008-10-23 Thread R C
HELP PLEASE I keep getting this error: MOD_PYTHON ERROR ProcessId: 29055 Interpreter:'mysite.com' (this has been changed by me) ServerName: 'mysite.com' DocumentRoot: '/var/www/' URI:'/admin' Location: '/' Directory: None Filename: '/var/www/admin'

Re: ifequal and numbers

2008-10-27 Thread R. Gorman
You would probably be better off writing a custom template tag (http:// docs.djangoproject.com/en/dev/howto/custom-template-tags/#howto-custom- template-tags). R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Browser access to manage.py / django command extensions

2008-11-10 Thread R. Gorman
Oh the weight of various risks... If you're just looking to execute a command and the response is quick an os.system command in a view might work. If it's a longer running process you might want to look at subprocess. R. --~--~-~--~~~---~--~~ You rec

Re: Setting Up Django on Vista and Creating a Database

2008-11-13 Thread Danny R
John, Setting the paths in Vista is quirky. I also cannot make it work. As a workaround whenever I open a new command prompt, i do the following command: set path=C:\Python25\Lib\site-packages\django\bin\;C: \Python25\ then, when i create an app or a project, i do this instead:

Re: Help for crontab

2008-11-23 Thread R. Gorman
Here's a third option that I've found useful when wanting to run a cron job: http://blog.capstrat.com/articles/making-django-environmentally-friendly/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Access the HTTP request from a model

2008-11-24 Thread R. Gorman
The request object is accessed in your view. def memberView(request): --~--~-~--~~~---~--~~ 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 unsub

Re: Access the HTTP request from a model

2008-11-24 Thread R. Gorman
The request data is available in your views as a dictionary. For example: def memberView(request): if request.method == 'POST': request.POST['foo'] ... R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: Sending automatic emails

2008-11-30 Thread R. Gorman
It is also possible to use a cronjob to initiate a script to send an e- mail. --~--~-~--~~~---~--~~ 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

Re: i18n and l10n of templates for emails

2008-12-08 Thread R. Gorman
I ran into the same issue, but different encoding. I found that adding a special comment line to the beginning of the python file allowed for the desired encoding (source: 2.2.3 from http://www.python.org/doc/2.5.2/tut/node4.html). Hope that helps, R

Re: running template filters after the page has loaded.

2008-12-08 Thread R. Gorman
You're likely going to need to need to run to urlencode function within the view that processes your ajax request. Should be able to import using 'from urllib import urlencode' and then 'urlencode(*your string variable*)'. R. --~--~-~--~~~

Re: similar method for get_or_create()

2008-07-18 Thread R. Gorman
Why do you need a method other than get_or_create? Could you not try to retrieve the object using get_or_create and then update the object if retrieved? R. On Jul 18, 5:57 am, leppy <[EMAIL PROTECTED]> wrote: > hi everyone, > > Can anyone tell me a method similar to

Re: Introducing myself and first question

2008-09-16 Thread R. Gorman
login_required > from django.contrib import auth > > @login_required > def indice(request): >    return render_to_response("index.html", { 'title' : 'DJMSB'}) If you change your view to: @login_required(redirect_field_name='n

Re: Getting specific data from a many to many field.

2008-09-16 Thread R. Gorman
's thrown if there's no such picture. > > Can't seem to get the 'except IndexError:' line to pass syntax. > > However, it works fine without. Just have to be sure images are > there. :) > It might be an indentation issue: try: return

Re: Getting specific data from a many to many field.

2008-09-16 Thread R. Gorman
one line. I think the formatting was changed when Daniel posted the code. R. --~--~-~--~~~---~--~~ 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@google

Re: Introducing myself and first question

2008-09-16 Thread R. Gorman
faults import * from django.contrib.auth.views import login, logout from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^djmsb/accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}), (r&#x

Re: mod_python errors in production deployment. apache vs django

2008-09-16 Thread R. Gorman
What is in your urls.py file? That's where your urlpatterns should be stored. R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Introducing myself and first question

2008-09-17 Thread R. Gorman
ot need it in your urls.py. The snag to all this is it appears the authentication app does not appear to currently use the root option (http://code.djangoproject.com/ticket/8906). The perks of using a new release I suppose. R. On Sep 17, 2:57 am, Mirto Silvio Busico <[EMAIL PROTECTED]> wro

Re: mod_python errors in production deployment. apache vs django

2008-09-17 Thread R. Gorman
imported? The line 'from django.db import models' should be at the top of all your models.py files. R. On Sep 17, 10:33 am, NoviceSortOf <[EMAIL PROTECTED]> wrote: > Ok finally got this resolved there were several problems. > > Following the book the Definative G

Re: Render to Response or Another Ways to Getting Data

2008-09-17 Thread R. Gorman
If there is data you would like available to every template you want to look into context processors. There's a good tutorial for it here: http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context-processors/ R. --~--~-~--~~~---~--~~ You received

Re: mod_python errors in production deployment. apache vs django

2008-09-17 Thread R. Gorman
ields/ #django.db.models.CharField.max_length). Overall though, there is definitely a bit of a learning curve to getting the system up and running and have all the database setup correctly. Once you get over the hump though things will start to make a lot more sense. R. On Sep 17, 1:07 pm, NoviceS

Re: development environment versus production environment

2008-09-18 Thread R. Gorman
As you guessed, the abstraction layer can take care of *most* code. Because it is possible to write custom SQL commands it would be possible to have code not compatible with all database types. Beyond that exception though, you should be fine. R

Re: Authentication: user_passes_test() - issue

2008-09-22 Thread R. Gorman
ltins/#url). With this you can pass arguments to a view, in your case 'model'. R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: update or add object?

2008-09-22 Thread R. Gorman
get_or_create http://docs.djangoproject.com/en/dev/ref/models/querysets/#get-or-create-kwargs R. On Sep 22, 7:55 pm, John M <[EMAIL PROTECTED]> wrote: > Is there a method I can call in a view that given a key, it checks to > see if that object exists and if it does returns that o

Re: 'get_latest' is not a valid tag library

2008-09-25 Thread R. Gorman
Post your template code as well. R. --~--~-~--~~~---~--~~ 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,

Re: error on live server, 'module' object has no attribute 'models'

2008-10-03 Thread R. Gorman
If it only happens some of the time it often indicates you need to restart your http server. R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

django-basic-blog

2008-10-07 Thread R C
I'm very, very new to django I tried installing the basic-blog application (http://code.google.com/p/django-basic-apps/source/browse/#svn/trunk/ blog) When I run: python manage.py runserver I get an error (in red font): Error: No module named basic the blog folder is in: /home/myusername/local

Re: Search functionality over the DB

2008-10-16 Thread R. Gorman
tContext(request)) The Q objects contain your query fields. The results iteration contains your models. R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: nOOb alert, accessing set variables in template

2008-10-17 Thread R. Gorman
You could use {{ for obj in A.a_set.all }} and print out the {{ obj }}. R. --~--~-~--~~~---~--~~ 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: User Auth... is_group in a template?

2009-02-09 Thread R. Gorman
Just an idea, but what about using a user profile and then using the get_profile function? ex. {% if user.get_profile.customer %} customer block {% endif %} R. On Feb 9, 11:01 am, Alfonso wrote: > I'm wondering, I can easily add a if statement to detect whether a > user is

Re: can't connect with dbshell

2009-03-20 Thread Adrian R.
Same problem here and no additional information. Could somebody please help us? Thank you! On 18 Mrz., 23:23, waltbrad wrote: > First time I think I've ever tried this. I'm using postgres and the > database is configured correctly and I have psql.exe on my path. > > So at the dos prompt I can: >

Re: can't connect with dbshell

2009-03-20 Thread Adrian R.
On 20 Mrz., 17:21, Ramiro Morales wrote: > On Wed, Mar 18, 2009 at 7:23 PM, waltbrad wrote: > > > First time I think I've ever tried this. I'm using postgres and the > > database is configured correctly and I have psql.exe on my path. > > > So at the dos prompt I can: > > > C:\>psql -d postgre

Re: Local Server seems to not work with typing parameter in the url?

2009-03-24 Thread R. Gorman
If that's an exact copy, you have a typo in your URL variable; you're missing a / after CSserver. R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Pyfacebook + Dreamhost

2009-06-25 Thread R C
Hi Everyone I cannot for the life of me get Pyfacebook to work with Dreamhost. It is a problem with the middleware and the fact that at Dreamhost you have to use fcgi (instead of mod_python for example). Any help would be greatly appreciated ERROR MESSAGE BELOW ImproperlyConfiguredPython

django-facebookconnect

2009-06-26 Thread R C
Hi Everyone, I've been trying to get the django-facebookconnect (http:// code.google.com/p/django-facebookconnect/) app working with my site. The problem I'm having is that I don't know how to "plug-in" the views and urls for this plugin I have "hacked" it by simply copying the urls.py from the

Re: django-facebookconnect

2009-06-26 Thread R C
/profile/ (I have replaced my site with xxx) How do I get the facebook login box to popup and for that to create accounts, etc? On Jun 26, 2:04 pm, R C wrote: > Hi Everyone, > > I've been trying to get the django-facebookconnect (http:// > code.google.com/p/django-face

Re: django-facebookconnect

2009-06-26 Thread R C
nks On Jun 26, 3:01 pm, R C wrote: > Well I have solved part of my problem: > > There are updated installation > instructionshttp://code.google.com/p/django-facebookconnect/issues/detail?id=1 > > But the problem remains: > When I click on the facebook co

Optional user foreign key - for tracking viewing history

2009-07-15 Thread R C
t; must be a "User" instance. Can anyone help me understand how to have a model with an optional foreign key to the django.contrib.auth.models User object? Thanks, R --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

iPhone authentication in Django?

2009-07-28 Thread R C
Any thoughts or directions? Thanks R --~--~-~--~~~---~--~~ 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

Re: Simple Query?

2009-04-12 Thread R. Gorman
The easiest answer is your foreignkey is pointing the wrong way. With your current model definitions you could do MediaAndContainer.objects.select_related('name'). To go in the opposite direction you need to use _set (http://docs.djangoproject.com/ en/dev/topics/db/queries/#following-relationships

Re: Fwd: Default ManyToMany ordering

2009-04-12 Thread R. Gorman
If it's for the admin interface the admin option ordering (http:// docs.djangoproject.com/en/dev/ref/contrib/admin/#ordering) might do the trick. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Why does django add settings to be part of my urls and then give me a reverse url lookup error?

2009-04-18 Thread R. Gorman
Your likelihood in resolving this issue would be much higher if you include your code (urls.py, form html, etc.) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: graph tools

2009-04-23 Thread R. Gorman
There's also Google visualizations (http://code.google.com/apis/ visualization/). They have a python library that can easily interact with Django (http://code.google.com/apis/visualization/documentation/ dev/gviz_api_lib.html). --~--~-~--~~~---~--~~ You received thi

Re: i need a unlimited subcategories

2009-04-27 Thread R. Gorman
Treebeard is another option. http://code.google.com/p/django-treebeard/ I'm sure between mptt or treebeard, you'll find something suitable. R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Separate Admin for each Site

2009-05-06 Thread Steve R
I’m looking to create an Admin so that when a user from one Site logs into the admin they will not be able to see or modify entries for other sites. An example might help. Say you have a blog application and you use the django.contrib.site framework so that you can run multiple blogs, each with

Re: i have a question about model

2009-05-22 Thread R. Gorman
I do not see any reason why the models you have provided would behave in that manner. I would suggest posting the view you are using to return the records. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: Shared connection stuff?

2009-05-22 Thread R. Gorman
You can control database connections and transactions using transaction management: http://docs.djangoproject.com/en/dev/topics/db/transactions/ On May 22, 7:41 am, "m...@nysv.org" wrote: > Hi! > > I'm using python-processing to run things in parallell based > on data in a Django-powered databa

Re: How to convert 10 digit mysql date to django date format

2009-05-22 Thread R. Gorman
ed as you provided, the last step would be: mysql_date.strftime("%d-%m-%y") R. On May 22, 2:13 am, laspal wrote: > Hi, > > How to convert mysql 10 digit date format to django date format? > example: > mysql date - 1219848914 > to dj

Re: Why does form.is_valid() throw ValueError?

2009-05-22 Thread R. Gorman
You are correct in your understand that .is_valid() returns False if the data is invalid. Are you sure you are not processing data irrespective of whether the data validated or not? A little more detail on how your processing your data might provide some insight. R. On May 21, 10:48 pm, Rex

Re: Why does form.is_valid() throw ValueError?

2009-05-23 Thread R. Gorman
Is your form variable the problem? Based on using f.is_valid() the code prior to this should be: f = *YourFormObject*(request.POST) R. On May 23, 12:07 am, Rex wrote: > On May 22, 4:33 pm, "R. Gorman" wrote: > > > > > > > You are correct in your understand

Re: Tastiest show-off Django template filters

2009-06-09 Thread Nicolas R
So what do these filters (humanise, typogrify) do? I would suggest a truncatesentences, to go along with truncatewords Daniele Procida wrote: > I'm doing a demo of some of our Django work soon. Partly, it'll be a > showcase for Django. One thing I'd like to do is demonstrate Django's > template

order by count of related object

2009-06-17 Thread R C
() Let's say I have 3 authors: 1) John -- has 10 articles 2) Bob -- has 20 articles 3) Lisa -- has 30 articles I would like to select authors and order by the number of articles they have written: Author.objects.all().order_by('article__count') But this does not work. Any suggesti

Re: order by count of related object

2009-06-17 Thread R C
10 2 20 3 30 On Jun 17, 3:47 pm, Daniel Roseman wrote: > On Jun 17, 1:12 pm, R C wrote: > > > > > Hi, > > > I would like to be able to select objects and order them by the count > > of a related field > > > For example, I hav

Re: order by count of related object

2009-06-17 Thread R C
Thanks, it worked! Both of you have been very helpful. On Jun 17, 5:04 pm, Alex Gaynor wrote: > On Wed, Jun 17, 2009 at 10:00 AM, R C wrote: > > > Thanks for your fast reply > > > I realize that there is no "count" field in my article model.  However >

docstring format documentation for the admin doc contrib?

2009-09-12 Thread Andrew R
The built in templates and filters have formatted docstrings (``, ===, etc.). I don't see anywhere where this syntax is documented. Where can I find information on this. Example docstring: def yesno(value, arg=None): """ Given a string mapping values for true, false and (optionally) N

Re: docstring format documentation for the admin doc contrib?

2009-09-12 Thread Andrew R
a Web page on the official Django site. > > source:http://docs.djangoproject.com/en/dev/faq/general/#how-can-i-download-... > > On Sun, Sep 13, 2009 at 12:21 AM, Andrew R > wrote: > > > > > > > The built in templates and filters have formatted docstrings (``, > &g

Re: How periodically import content to Django?

2009-11-12 Thread R. Gorman
If the file can be parsed you could setup a script to read the file and use the get_or_create query to add new entries. R. On Nov 12, 10:31 am, bowlby wrote: > Is there a way to periodically import content to Django by means of > uploading a file of some sort? > > The use case is t

Re: CSV to JSON snippet

2009-11-12 Thread R. Gorman
What is the error message you are receiving? R. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-user

Re: Help a newbie with his simple foreignkey problem?

2009-11-12 Thread R. Gorman
27;userprofile_set'. Or you could user: p = request.user.get_profile() p.shelf1.add(b) R. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this g

View returns no queryset

2009-11-28 Thread R. Gorman
I've got a real stumper. Well, a stumper for me; I'm hoping someone has some insight. Here's the view I'm calling: def season_schedule_month(request, league_slug, year, month): """Given a league slug, retrieve the season's schedule month by month. return date_based.archive_month(

Initial and additional data in Django formsets (or forms)

2009-12-14 Thread Keith R
I posted this in StackOverflow but didnt get any helpful responses so I'd like to ask the Django mailing list. I have two questions: 1) Is it possible to associate different initial data for each form in a Django formset? (http://stackoverflow.com/questions/1897756/different-initial-data- for-ea

Re: Django 1.2 modelformset_factory fails with meta: widgets

2010-08-13 Thread Matthew R
I got hit by this same bug and here's the workaround I used, for future reference. Basically you need to specify a formfield_callback kwarg to modelformset_factory that just passes along any kwargs it receives (namely, in this case, the 'widget' argument) to Field.formfield(): def create_formfield

Re: Updating a video rating using AJAX

2010-10-20 Thread Nicolas R
the jQuery javascript library. You could do something like this: $('#my_form').live('submit',function(){ var self = $this; $.post( self.attr('action'), function(r){ self.replaceWith( $(r).find('#my_form') ); }); retur

Templates design question

2010-02-15 Thread R. K.
Hello, I'm writing some simple webblog, just for self teaching, and I have a question how to do better. Here is the situation, I have base.html, I have blog.html which extends base. Now in that blog I would like to put posts, full text posts, without comments, and link to the post only with commen

Re: stuck in Tutorial on StackedInLine, part 2 of tutorial

2010-03-20 Thread Mike R
OK, I carefully constructed a reply with all the traceback, etc. then noticed that StackedInLine is not right, it is StackedInline (no capital L) -- thanks for your help! Discarded all that and now replying with this. Maybe I had some kind of idiotic java reflex that made me capitalize Line in th

Custom filters failing with "no module"

2007-06-08 Thread Andrew R
All, I have a code generating program that using django's nifty template packages. It all worked well until I wanted to use a custom filter. No matter what I try, I get: django.template.TemplateSyntaxError: 'javadoc_filter' is not a valid tag library: Could not load template library from

Re: Custom filters failing with "no module"

2007-06-09 Thread Andrew R
James Bennett wrote: > On 6/6/07, Andrew R <[EMAIL PROTECTED]> wrote: >> whereas I just want it to import "javadoc_filter" from my current dir. I'm >> sure >> this is by design in django but there must be a way around it. > > This is one of th

Re: Custom filters failing with "no module"

2007-06-12 Thread Andrew R
James Bennett wrote: > So long as your code is in a location where your code can be imported > by Python, there is another way; there are a couple of undocumented > functions in the template system which handle the loading of tag > libraries. > [snip] > So something like > > from django.temp

Re: Using simplejson

2007-06-20 Thread aman r
yes, u have understood my problem correctly but the JSON object is not recognized in the html page so if i try to say something like list.name(where list has my JSON and name is its one of the values present in that list) then it doesnt get recognized, is gives me Type mismatch error , is there any

Re: Using simplejson

2007-06-21 Thread aman r
ON within the > javascript is: > > arrayData = dojo.json.evalJson(data); > > which evaluates the data and returns it as object literals that you > can then access with dot notation or whatever you use. In my case, I > used the javascript array/dictionary lookup notation to get my

Re: Custom filters failing with "no module"

2007-07-01 Thread Andrew R
Malcolm Tredinnick wrote: > On Tue, 2007-06-12 at 05:44 -0400, Andrew R wrote: >> I have to admit, though, that I think adding a custom filter should be as >> simple >> as this code alone: >> >>> from django.template import Library >>> >>>

has many through relationship

2008-02-03 Thread R. K.
Hello, I'm wondering if there is such thing in django? For example, forum has topics, and topics has posts, so it would be post has foreign key to topic, and topic has foreign key to forum. And the question is, how to get how many posts forum has? Thanks in advance,

Re: has many through relationship

2008-02-03 Thread R. K.
adding that posts number to 'forums' object. On Feb 3, 5:29 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > On Feb 3, 8:31 pm, "R. K." <[EMAIL PROTECTED]> wrote: > > > Hello, I'm wondering if there is such thing in django? For example, > > f

Invitation for new IT Forum.

2008-02-17 Thread Sankar R
Hi Gays I am Sankar, I created a new forum to share the technical Knowledge, Please Join with me to this forum. ! Welcome you ! www.sankar.co.in Thanks & Regards Sankar R --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Invitation from new FORUM

2008-02-25 Thread Sankar R
Hi I created a new FORUM to share the Knowlwdge Join with me... www.sankar.co.in Thanks & Regards Sankar R --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Complicated relations

2008-03-31 Thread R. Akerman
I'm co-writing a site for a student nation ( http://en.wikipedia.org/wiki/Nations_at_Swedish_universities ) and I've run into some issues in the first step of creating the site, making the models. I have a model called Person that describes personal information about a person; name, adress, DOB..

Re: Complicated relations

2008-03-31 Thread R. Akerman
Ah great, I thought I went over the models documentation but must have missed just what I was looking for... Thanks, I'll have a go at it. On 31 Mar, 18:25, "Jonathan Buchanan" <[EMAIL PROTECTED]> wrote: > On Mon, Mar 31, 2008 at 2:31 PM, R. Akerman <[EMAIL PROTE

user login problem

2008-06-21 Thread R. K.
So the problem is, that I can't login regular users, who has is_staff field set to false. If it is set to true, everything is fine. So now what I have: default login function (django.contrib.auth.views.login) and the view which renders the page after login has django.contrib.auth.decorators.login_

Re: Pagination causing mySQL error

2007-05-04 Thread Pashka R.
ct in > object_listslice:"3:6" %} > Exception Type: ProgrammingError > Exception Value: (1064, "You have an error in your SQL syntax; check the > manual that corresponds to your MySQL server version for the right > syntax to use near '-1' at line 1") &g

Re: Translation of class names

2007-05-08 Thread Pashka R.
2007/5/7, Konstantin Pavlovsky <[EMAIL PROTECTED]>: > > up! > nobody used i18n things? [offtopic] Может создать группу ru_django? [/offtopic] -- //wbr Pashka R. <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you

InvalidTemplateLibrary at /

2007-05-27 Thread Pashka R.
'/someapp/params/' -- all OK... you can see this in http://kids.dn.ua/ and http://kids.dn.ua/info/project.html Have someone any idea how to fix this? //wbr Pashka R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: InvalidTemplateLibrary at /

2007-05-27 Thread Pashka R.
ay it be because I use not installed django? p.s. and sorry for my english :) //wbr Pashka R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: InvalidTemplateLibrary at /

2007-05-27 Thread Pashka R.
s and added paths to my stuff into sys.path :) //wbr Pashka R. --~--~-~--~~~---~--~~ 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

Using raw SQL with filter-support (or: speeding up MySQL views)

2007-12-03 Thread Adrian R.
Hello, I have a few models in my Django-App which are accessing MySQL-views. They return the correct result but the performance is really bad when I try to filter the results. I tried to speed up the view by query optimization but that's not good enough by half. When I execute the query to get al

Re: Using raw SQL with filter-support (or: speeding up MySQL views)

2007-12-04 Thread Adrian R.
On 3 Dez., 18:43, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > I don't know how to go from raw sql to a QuerySet. My own custom managers > start with a model's default QuerySet and modify it using the standard > exclude(), etc. Can you describe your views in terms of regular Django > operations

Re: installing docutils on Dreamhost

2006-06-04 Thread Sean R.
Hello - I'll be releasing a full howto on django and Dreamhost (yeah another one) later this week. It will show how to handle docutils and all those other packages with much less work. I'll post here whenever I've cleaned it up. -- Sean R. Rémi wrote: > On 2 Jun 2006

How Do I Authorise user using token

2021-10-06 Thread M R
Hi DRF Team, I have created tokens but i don't know how to use it for authentication. Every web page is showing in postman in google. how do i use headers in url Thanks Madhusudhan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

how to connect mongodb in my project,

2022-10-26 Thread pythoon r
please help me,i've one requirement (project) django with mongodb.how to connect mongo to django .i was tried some method i cant connect how to config mongoengine,django-mongo-engine in my settings.py file -- You received this message because you are subscribed to the Google Groups "Django use

Re: Accessing my local backend

2023-03-20 Thread Vanitha R
Thanks On Mon, Mar 13, 2023, 3:32 AM Carlos André Dantas de Lima < eucan...@gmail.com> wrote: > Have you chose url in settings, allow tô access and you try access with > mobile deixe in other address or port > > Em dom, 12 de mar de 2023 14:42, Donald KANTI > escreveu: > >> Hey you should start

Django Channels with Queue (Lobby) Manager

2023-07-11 Thread Alex R
Hello dear Community! I need help with Django channels and Websockets (i guess) for an application I am building. The project is online Chess game with Django as a backend and vanilla JavaScript (ajax, jQuey and some bootstrap). We are using custom chess engine written in python. Previously

Re: I can't start new project

2012-08-22 Thread rafi r
thanks so much this helped me tons!!! On Tuesday, December 27, 2011 9:27:06 AM UTC-5, Andre Terra (airstrike) wrote: > My bet is that you're using Windows. > > Open the Registry Editor (hit Winkey+R, "regedit" (no quotes), hit enter) > > --- > > Go to HKEY_

Re: Name Error in django class method

2011-10-30 Thread Navaneethan R
yes i had imported os module. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Uo4NIB7To7EJ. To post to this group, send email to django-users@googlegroups.c

Re: Name Error in django class method

2011-10-30 Thread Navaneethan R
yes-sure i ll follow the instructions note. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/KprOvRmbsXYJ. To post to this group, send email to django-users@

  1   2   3   4   >