Re: Is GeoDjango Too Much For This?

2012-02-23 Thread kenneth gonsalves
On Thu, 2012-02-23 at 17:13 -0800, DF wrote:
> I've been reading a bit about GeoDjango and it sounds intriguing. A
> colleague, though, suggested everything that can be done using
> GeoDjango is equally efficient utilizing the Google Maps API with
> JavaScript or JQuery to obtain the proper coordinates. 

if your activity is commercial, google will make you pay. Geodjango with
OSM is free - and OSM is more accurate than google and the raw data is
available. Also look at openlayers - that may fulfill your needs without
geodjango.
-- 
regards
Kenneth Gonsalves

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django Comments-Redirecting

2012-02-23 Thread Babatunde Akinyanmi
:)
Keep going maiyte but don't burnt out.

On Fri, Feb 24, 2012 at 4:24 AM, coded kid  wrote:

> Thanks man! I've changed it to {{request.path}}.
>
> Not thinking bout anything. Just might be tired then!
>
> On Feb 23, 4:30 pm, Babatunde Akinyanmi  wrote:
> > dude,
> > change {% url
> >  %}" /> to
> > your own custom view like the view you used to load the page where you
> > are collecting the comments.
> >
> > Don't mean to be harsh but what were you thinking?
> >
> > django.contrib.comments.views.comments.comment_done by default
> > redirects to the "Thanks for your comment" page.
> >
> > On 2/23/12, coded kid  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi guys, how can I get rid of users being directed to the “Thanks you
> > > for your comment” page after commenting  in Django site? I users to be
> > > redirected to the same page they commented.  I’m using Django
> > > comments.
> >
> > > I’ve tried adding:
> >
> > >  > > django.contrib.comments.views.comments.comment_done %}" />
> >
> > > But it’s not working. Below is codes in my comment/form.html
> >
> > > {% load comments %}
> > > {% get_comment_count for sol as comment_count %}
> > > {% get_comment_list for sol as comment_list %}
> > > {% get_comment_form for sol as form %}
> > > {% if user.is_authenticated %}
> > >
> > > {% csrf_token %}
> > > {% if next %}{% endif %}
> > > {% for field in form %}
> > > {% if field.is_hidden %}
> > > {{ field }}
> > > {% else %}
> > > {% if field.name != "name" and field.name != "email"
> > > and field.name != "url" %}
> > > {% if field.errors %}{{ field.errors }}{% endif %}
> > > {{ field }}
> > > {% endif %}
> > > {% endif %}
> > > {% endfor %}
> > > value="Comment" /
> >
> > >
> > > {% else %}
> > > I'm sorry, but you must be logged in to submit comments.
> > > {% endif %}
> >
> > > --
> > > 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...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django Comments-Redirecting

2012-02-23 Thread coded kid
Thanks man! I've changed it to {{request.path}}.

Not thinking bout anything. Just might be tired then!

On Feb 23, 4:30 pm, Babatunde Akinyanmi  wrote:
> dude,
> change {% url
>  %}" /> to
> your own custom view like the view you used to load the page where you
> are collecting the comments.
>
> Don't mean to be harsh but what were you thinking?
>
> django.contrib.comments.views.comments.comment_done by default
> redirects to the "Thanks for your comment" page.
>
> On 2/23/12, coded kid  wrote:
>
>
>
>
>
>
>
> > Hi guys, how can I get rid of users being directed to the “Thanks you
> > for your comment” page after commenting  in Django site? I users to be
> > redirected to the same page they commented.  I’m using Django
> > comments.
>
> > I’ve tried adding:
>
> >  > django.contrib.comments.views.comments.comment_done %}" />
>
> > But it’s not working. Below is codes in my comment/form.html
>
> > {% load comments %}
> > {% get_comment_count for sol as comment_count %}
> > {% get_comment_list for sol as comment_list %}
> > {% get_comment_form for sol as form %}
> > {% if user.is_authenticated %}
> >    
> >         {% csrf_token %}
> >         {% if next %}{% endif %}
> >         {% for field in form %}
> >             {% if field.is_hidden %}
> >                 {{ field }}
> >             {% else %}
> >                 {% if field.name != "name" and field.name != "email"
> > and field.name != "url" %}
> >                     {% if field.errors %}{{ field.errors }}{% endif %}
> >                     {{ field }}
> >                 {% endif %}
> >             {% endif %}
> >         {% endfor %}
> >    
> >    
> > {% else %}
> >     I'm sorry, but you must be logged in to submit comments.
> > {% endif %}
>
> > --
> > 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...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Site Urls and site_media random config change

2012-02-23 Thread Eli_West
Static media under the development server worked without a problem for
me for a few months, and still does but calling:

{{ modelxx.objectyy.url }}

to get a file url seemed to add full path out of nowhere instead of
relative path. Now

/site_media/{{ modelxx.objectyy.url }}

gives double prefix of : /home/trak/media/home/trak/media/dir/
filename ; my plugin that uses this URL is now broken. Removing the /
site_media/ prefix and using just

fileurl = {{ modelxx.objectyy.url }}

would seem to work and gives the exact path /home/trak/media/dir/
filename, but miraculously does not work. Perhaps calling  /home/
directly perms problem? Anyway the only way I can get the url to work
is by keeping the /site_media/ prefix and pasting in a static
extension:

/site_media/dirxx/filename


I am at a complete loss but know that originally the combination /
site_media/{{ modelxx.objectyy.url }}  worked fine and now the
{{  .url  }} usage seems to have thrown in full path. I was trying
some experiments with external apps and app some includes but I do not
see how this would affect any thing. I did turn off  USE_I18n in
settings file. Here are my 3 url settings, and below is most of my
settings file:
Is there a setting that forces the {{.url }} call to give a full path
rather than relative?

ANY thoughts would be appreciated.


(r'^site_media/(?P.*)$', 'django.views.static.serve',
{'document_root': '/home/trak/media'}),

MEDIA_ROOT = ''

MEDIA_URL = '/home/trak/media/'


## Django settings

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
# ('Your Name', 'your_em...@example.com'),
)

MANAGERS = ADMINS


# system time zone.
TIME_ZONE = 'America/Chicago'


SITE_ID = 1

# If you set this to False, Django will make some optimizations so as
not
# to load the internationalization machinery.
USE_I18N = False

# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale
USE_L10N = True

# Absolute filesystem path to the directory that will hold user-
uploaded files.
# Example: "/home/media/media.lawrence.com/media/"
MEDIA_ROOT = ''

# Examples: "http://media.lawrence.com/media/;, "http://example.com/
media/"
MEDIA_URL = '/home/trak/media/'

# Example: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = ''

# Example: "http://media.lawrence.com/static/;
STATIC_URL = '/static/'

# URL prefix for admin static files -- CSS, JavaScript and images.
# Make sure to use a trailing slash.
# Examples: "http://foo.com/static/admin/;, "/static/admin/".
ADMIN_MEDIA_PREFIX = '/static/admin/'

# Additional locations of static files
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/
static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)

# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
#'django.contrib.staticfiles.finders.DefaultStorageFinder',
)


# List of callables that know how to import templates from various
sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)

MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'user_profiles.middleware.CurrentUserMiddleware',
)

ROOT_URLCONF = 'trakdrop.urls'

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'registration',
'tdcreative',



# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
)


'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Is GeoDjango Too Much For This?

2012-02-23 Thread DF
I'm currently building my first Django-based app, which is proceeding
fairly well, thus far. One of the goals is to allow users to post
information (text, pics, video) and for the app to be able to
automatically detect the location where they posted this information.
That data would then ideally be able to be filtered later, such as
viewing the posts that were made within a specific radius.

I've been reading a bit about GeoDjango and it sounds intriguing. A
colleague, though, suggested everything that can be done using
GeoDjango is equally efficient utilizing the Google Maps API with
JavaScript or JQuery to obtain the proper coordinates.

Essentially, I'm looking to see what benefits GeoDjango would give
this project over using just the Google Maps API. If I've already
started a project in basic Django, is incorporating GeoDjango
problematic?  I'm still attempting to master the basics of Django and
venturing into GeoDjango may be too much. Or not.

Any insight appreciated.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django and social network

2012-02-23 Thread Alec Taylor
Virtualenv is recommended but not required.

You can just install everything to PATH

On Fri, Feb 24, 2012 at 2:29 AM, Lewis Satini  wrote:
> The only problem with pinax that I dont like is to setup the virtual
> environment that make me so headache
>
> The site that you ask me to check out. It's a very good for me. I look after
> that site. Thanks
>
>
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Dynamic mixin pattern, what do you think?

2012-02-23 Thread Marc Aymerich
Hi,
I'm developing a web hosting control panel and I've decided to split
it into several reusable applications:

(a) One subset of this reusable applications are those which implement
the typical services of an ISP, such as:
dns, web, mailing lists, databases, vps, and so on...

(b) Then there are a bunch of reusable applications that provide
different functionalities to these service applications, e.g:
*contacts: once this app is installed each new service will be
forced to have one contact asociated with it.
*daemons: once a service is saved/deleted (e-g. new email account
it will trigger the selected script that performs whichever change is
necessary on the ISP servers...
*billing, *payment.. and so on..

So in order to make it as much reusable as posible I've been playing
with the "dynamic mixin pattern". I've implemented it in two steps:

1) The list of models that implement the different services
(apps of type (a)) should be provided on the settings.py file, like:

SERVICE_MODELS = (
   'django.contrib.auth.models.User',
   'dns.models.Name', 'dns.models.Zone',
   'web.models.SystemGroup', 'web.models.VirtualHost',
   'mail.models.VirtualAliase',
   'lists.models.List',
   'vps.models.VPS',
   'jobs.models.Job',
   'databases.models.Database', 'databases.models.User',
)

2) Then for each model listed on this list, each application of type (b)
will provide their functionality by means of dynamic mixin; for example:
contacts app will dynamically add ServiceModelMixin to the bases of
each listed model, as well as adding a ServiceAdminMixin class to
the bases of each related ModelAdmin class.

It is clear what I mean?

As far as I know this kind of dynamic patterns: changing classes at
runtime and this kind of stuff, are not very well seen on Django and
python communites. So despite of working for me, it really leaves me
with unsettling feelings, like as something should be wrong with
this solution. But honestly I don't know any other approach that provides
the same degree of reusablility than this: third party apps will be
capable of being services just by putting their models on SERVICE_MODELS
(actually I've already done that with django.contrib.auth), also seems
that my apps can be more easily reused on other projects.

So what is your opinion on this? It's an evil pattern? What approach
will you use? Would you make the Mixin explicit on each class
declaration? something else?

Thanks !!
-- 
Marc

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: viewing generated SQL without running the query

2012-02-23 Thread larry.mart...@gmail.com
On Feb 21, 7:32 pm, diafygi  wrote:
> There's a previous thread about this[1], but it was closed back in
> 2006 without resolution. So I'd like to check back in and see if there
> is a way to get a complete query string without executing the query.
>
> At first, I thought I could just use the QuerySet.query.__str__(), but
> that does not put quotes around dates, so MySQL returns a warning when
> trying to execute it. I filed a bug report[2], but apparently
> QuerySet.query.__str__() isn't supposed to return a valid query
> string.
>
> So is there a way to get the compiled query string without executing
> the query (including when debug=False)?
>
> Thanks!
> Daniel
>
> [1] -http://groups.google.com/group/django-users/browse_thread/thread/37a6...
> [2] -https://code.djangoproject.com/ticket/17741

What I usually do is set a breakpoint with pdb at the appropriate
place ('import pdb; pdb.set_trace()') then run the devel server, and
then you hit the breakpoint do 'print queryset.query'

There's also this:

https://docs.djangoproject.com/en/dev/faq/models/#how-can-i-see-the-raw-sql-queries-django-is-running

But I've never tried it.

-larry

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: social networks

2012-02-23 Thread yati sagade
Hi dummyman,
Everyone starts out as a beginner :) As Martey pointed out, pyfacebook is
dated now(Thanks Martey!) - You can go through the docs on the links posted
by him. If you have a problem, try searching on
StackOverflow;
they have a team of FB developers monitoring questions on FB app
development.

Also, if you are in for some serious learning, go through
thistutorial.
Actually, the most difficult part is to get the oAuth part right
- once that is done, using the returned JSON data in Python is matter of
working on dicts. The FB docs are comprehensive, but may be daunting at
first. You can, and maybe should use libraries already developed, but
learning oAuth 2.0 authorization will be nice experience :) - Also, Google+
have launched their own API for developers which also uses oAuth 2.0 for
authorization.

On Thu, Feb 23, 2012 at 10:19 PM, dummyman dummyman wrote:

> Hi ,
> Hope u dont mind. I am very new to this . I want to use facebook apis to
> gather profile information and do some data mining on it using django.
> Please tell me the starting point for me so that i can proceed further.
> Hope u dont mind asking silly questions
>
>
> On Thu, Feb 23, 2012 at 5:35 PM, Martey Dodoo wrote:
>
>> On Wednesday, February 22, 2012 12:25:21 PM UTC-5, yati sagade wrote:
>>>
>>> I have always used the FB API using core Python urllib and other
>>> helpers(after reading the FB API docs, of course), but you may find this
>>> this  and 
>>> thishelpful.
>>
>>
>> pyfacebook has not been updated in over 2 years and uses the deprecated
>> REST API, so it would be a bad place for a beginner to start. I would try
>> using either one of the various unofficial forks of the official Facebook
>> SDK (I prefer PythonForFacebook's [1], but I might be biased because I have
>> commit access), or one of the two "django-facebook" libraries
>> (PythonForFacebook's [2] or Thierry Schellenbach's [3]).
>>
>> [1]: https://github.com/pythonforfacebook/facebook-sdk
>> [2]: https://github.com/pythonforfacebook/django-facebook
>> [3]: https://github.com/tschellenbach/Django-facebook
>>
>> --
>> 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/-/SvmBG6s1YcIJ.
>>
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Yati Sagade 

(@yati_itay )

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Login failing

2012-02-23 Thread Aryeh Leib Taurog
Also worthy of note: I've seen this happen also with
SESSION_SAVE_EVERY_REQUEST = True

On Feb 22, 11:34 pm, "Aryeh Leib Taurog"  wrote:
> I'm seeing a very strange intermittent problem with logging in.  The login
> appears to be successful, because the response to the login POST is a 302
> redirect.  However sometimes the user doesn't seem to be stored in the
> session.
>
> Here's a snippet from my http access log where my testing app was
> redirected to a page which generates an error if the specified user isn't
> logged in:
>
> "POST /accounts/login/?next=/check_login/logintest/ HTTP/1.1" 302
> "GET /check_login/logintest/ HTTP/1.1" 500
>
> This happened 14 consecutive times yesterday and then it started working
> again.
>
> I compared the data collected on the server with the http headers logged
> by the client and I can see that the cookies are transmitted correctly.  I
> can retrieve the session records using manage.py whois, but it reports "No
> user associated with session."  In some of the error cases the raw session
> data is empty and in some cases it looks like this:
> {'testcookie': 'worked'}
>
> I see a few old threads that seemed to describe such a problem, but no
> resolution is mentioned there.  I wonder if anyone has successfully
> diagnosed and rectified a similar problem?  Any help getting this fixed
> would be very appreciated!
>
> Thanks,
> Aryeh Leib
>
> I'm running:
> django 1.2.4
> python 2.6.5 (ubuntu 10.4)
> lighttpd 1.4.26 via fcgi (with flup)
> postgresql 8.4 via psycopg2 (2.0.13-2ubuntu2)
>
> session engine is db (all session-related settings are default)
> The login view is django.contrib.auth.views.login
>
> MIDDLEWARE_CLASSES = (
>     'django.middleware.common.CommonMiddleware',
>     'django.contrib.sessions.middleware.SessionMiddleware',
>     'django.middleware.csrf.CsrfViewMiddleware',
>     'django.middleware.locale.LocaleMiddleware',
>     'django.contrib.auth.middleware.AuthenticationMiddleware',
>     'django.contrib.messages.middleware.MessageMiddleware',
>     'django.middleware.doc.XViewMiddleware',
>     'django.middleware.transaction.TransactionMiddleware',
>      ...
> )
>
> INSTALLED_APPS = (
>     'django.contrib.auth',
>     'django.contrib.contenttypes',
>     'django.contrib.sessions',
>     'django.contrib.messages',
>     'django.contrib.admin',
>     'django.contrib.humanize',
>     'django.contrib.admindocs',
>     'django_extensions',
>     ...
> )

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: social networks

2012-02-23 Thread dummyman dummyman
Hi ,
Hope u dont mind. I am very new to this . I want to use facebook apis to
gather profile information and do some data mining on it using django.
Please tell me the starting point for me so that i can proceed further.
Hope u dont mind asking silly questions

On Thu, Feb 23, 2012 at 5:35 PM, Martey Dodoo wrote:

> On Wednesday, February 22, 2012 12:25:21 PM UTC-5, yati sagade wrote:
>>
>> I have always used the FB API using core Python urllib and other
>> helpers(after reading the FB API docs, of course), but you may find this
>> this  and 
>> thishelpful.
>
>
> pyfacebook has not been updated in over 2 years and uses the deprecated
> REST API, so it would be a bad place for a beginner to start. I would try
> using either one of the various unofficial forks of the official Facebook
> SDK (I prefer PythonForFacebook's [1], but I might be biased because I have
> commit access), or one of the two "django-facebook" libraries
> (PythonForFacebook's [2] or Thierry Schellenbach's [3]).
>
> [1]: https://github.com/pythonforfacebook/facebook-sdk
> [2]: https://github.com/pythonforfacebook/django-facebook
> [3]: https://github.com/tschellenbach/Django-facebook
>
> --
> 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/-/SvmBG6s1YcIJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Mysql problem

2012-02-23 Thread Matt Stevens
I second the Daniel Roseman presentation, check out his blog as well –
he has a few posts about optimizing querysets.

Get debug-toolbar on there and see what's actually causing it. Bad
template code is the most common thing I've found, executing the same
query 1,000+ times in a loop when once would suffice. If the number of
queries being run is low but they're taking ages, then ‘EXPLAIN’ the
queries and see how they can be improved.

200,000 records is really not a lot.

Matt Stevens | www.dirtymonkey.co.uk

On 23 February 2012 11:21, kalyani ram  wrote:
>
> Hey ppl!
>
> I there anybody who can help me on a problem with a slow page process
> with mysql as a backend having about 2lakh records ??
>
> Thanks in advance.
>
> Regards,
> kalyani
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django Comments-Redirecting

2012-02-23 Thread Babatunde Akinyanmi
dude,
change {% url
 %}" /> to
your own custom view like the view you used to load the page where you
are collecting the comments.

Don't mean to be harsh but what were you thinking?

django.contrib.comments.views.comments.comment_done by default
redirects to the "Thanks for your comment" page.

On 2/23/12, coded kid  wrote:
> Hi guys, how can I get rid of users being directed to the “Thanks you
> for your comment” page after commenting  in Django site? I users to be
> redirected to the same page they commented.  I’m using Django
> comments.
>
> I’ve tried adding:
>
>  django.contrib.comments.views.comments.comment_done %}" />
>
> But it’s not working. Below is codes in my comment/form.html
>
> {% load comments %}
> {% get_comment_count for sol as comment_count %}
> {% get_comment_list for sol as comment_list %}
> {% get_comment_form for sol as form %}
> {% if user.is_authenticated %}
>
> {% csrf_token %}
> {% if next %}{% endif %}
> {% for field in form %}
> {% if field.is_hidden %}
> {{ field }}
> {% else %}
> {% if field.name != "name" and field.name != "email"
> and field.name != "url" %}
> {% if field.errors %}{{ field.errors }}{% endif %}
> {{ field }}
> {% endif %}
> {% endif %}
> {% endfor %}
>   >
>
> {% else %}
> I'm sorry, but you must be logged in to submit comments.
> {% endif %}
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django and social network

2012-02-23 Thread Lewis Satini
The only problem with pinax that I dont like is to setup the virtual
environment that make me so headache

The site that you ask me to check out. It's a very good for me. I look
after that site. Thanks

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: viewing generated SQL without running the query

2012-02-23 Thread Kelly Nicholes
Can't you get a queryset, like

print MyObject.objects.all().query
?

On Feb 21, 7:32 pm, diafygi  wrote:
> There's a previous thread about this[1], but it was closed back in
> 2006 without resolution. So I'd like to check back in and see if there
> is a way to get a complete query string without executing the query.
>
> At first, I thought I could just use the QuerySet.query.__str__(), but
> that does not put quotes around dates, so MySQL returns a warning when
> trying to execute it. I filed a bug report[2], but apparently
> QuerySet.query.__str__() isn't supposed to return a valid query
> string.
>
> So is there a way to get the compiled query string without executing
> the query (including when debug=False)?
>
> Thanks!
> Daniel
>
> [1] -http://groups.google.com/group/django-users/browse_thread/thread/37a6...
> [2] -https://code.djangoproject.com/ticket/17741

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Mysql problem

2012-02-23 Thread Javier Guerra Giraldez
On Thu, Feb 23, 2012 at 6:21 AM, kalyani ram  wrote:
> a backend having about 2lakh records

i couldn't resist, and found this:   http://en.wikipedia.org/wiki/Lakh

translated, it's "about 200,000 records"

-- 
Javier

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: About managing dependencies in a collaborative development team and good practices.

2012-02-23 Thread Alen Mujezinovic
Hi Santiago


All the mentions of virtualenv and pip are good, but I want to throw in 
another suggestion that will make your life a lot easier when working in 
teams and lower the discrepancy between "development machine" and "live 
server": Vagrant [1].

In fact, we're now running *all* projects in vagrant vm's with automated 
provisioning. Adding a new coder to the team involves 

* Checking out the repository that contains 
** the vagrant configuration file
** the requirements.txt
** the setup.py
** the provisioning recipes

* running `vagrant up`

And you'll have a complete mini server that runs exactly the same 
architecture on each team member's dev machine and server.

Alen


[1] http://vagrantup.com/


-- 
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/-/nwExUXgJTx4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: problem API tutorial

2012-02-23 Thread Olmo
 Thanks for pointing me the right url, I didn't even realized that I
 was reading a wrong doc, I will pay more attention to the url paths in
 the future (I only checked documentation on home page of django
 project and didn't worry about version).

 Thanks again for fast response and sorry about so trivial issue.

El Thu, 23 Feb 2012 13:04:14 +
Tom Evans  escribió:
> On Thu, Feb 23, 2012 at 12:06 PM, Olmo  wrote:
> >  Hi, it is the first time I post to the list, the cause is that I
> >  having "issues" with the tutorial
> 
> You are reading the tutorial for 'trunk', but you have Django 1.3
> installed. Read the right tutorial:
> 
> https://docs.djangoproject.com/en/1.3/intro/tutorial01/
> 
> Any passing core devs fancy changing the website so that the default
> docs are the latest release rather than the upcoming release, this is
> the 4th or 5th time I've seen this issue raised on lists.
> 
> Cheers
> 
> Tom
> 


-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



RE: Streamed file upload without form from actionscript

2012-02-23 Thread Sells, Fred
Here's some snippets from my code that work.  I had to remove a lot that
is specific to my organization, so no guarantees...

-from
xmitzipfile.py--
def processZipfileBuffer(user, buffer):
email = create_mail_object()
if True:
results = []
zs = ZipString(buffer)
for name in zs.namelist():
xml = zs.read(name)
status = process_xml_file(name, xml)
results.append( status )
count = len(zs.namelist())
text = '%s uploaded %s files on %s\n' % (str(user), count,
datetime.datetime.now())
text += '\n'.join(results)
else:
text="Email failed: %s" % sys.exc_value
email.body = text
email.send()
return text

def execute(user='unknown', filedata=None):  
if filedata==None:
raise Exception('No Filedata to Upload')
buffer = ''
for chunk in filedata.chunks():
buffer += chunk 
#print 'xmitzipfile.execute buffer size ', len(buffer)
print processZipfileBuffer(user, buffer)

---from
uploaders.__init__.py--

import xmitzipfile


def upload(option, **kwargs):
return xmitzipfile.execute(**kwargs)
from views.py

def upload(request, *args, **kwargs):
user = request.session.get('user', None)
filedata = request.FILES['Filedata']
action = str(args[0])
results = uploaders.upload(action, user=user, filedata=filedata)
return HttpResponse('OK')



-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: problem API tutorial

2012-02-23 Thread Tom Evans
On Thu, Feb 23, 2012 at 12:06 PM, Olmo  wrote:
>  Hi, it is the first time I post to the list, the cause is that I
>  having "issues" with the tutorial

You are reading the tutorial for 'trunk', but you have Django 1.3
installed. Read the right tutorial:

https://docs.djangoproject.com/en/1.3/intro/tutorial01/

Any passing core devs fancy changing the website so that the default
docs are the latest release rather than the upcoming release, this is
the 4th or 5th time I've seen this issue raised on lists.

Cheers

Tom

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



problem API tutorial

2012-02-23 Thread Olmo
 Hi, it is the first time I post to the list, the cause is that I
 having "issues" with the tutorial, I mean, when it must create a
 subdirectory and these files (django-admin.py startproject):

mysite/
manage.py
mysite/
__init__.py
settings.py
urls.py
wsgi.py

In my case it only creates:

mysite/
manage.py
__init__.py
settings.py
urls.py

 It says, in the tutorial, that it must be caused by using an older
 Django version, but my Django installation is up to date, indeed,
 following an older tutorial I managed to have the development server
 running like this:

python manage.py runserver
Validating models...

0 errors found
Django version 1.3.1, using settings 'misitio.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

 Bye and thanks in advance.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Mysql problem

2012-02-23 Thread kamta singh
use index

On Thu, Feb 23, 2012 at 4:51 PM, kalyani ram  wrote:
> Hey ppl!
>
> I there anybody who can help me on a problem with a slow page process
> with mysql as a backend having about 2lakh records ??
>
> Thanks in advance.
>
> Regards,
> kalyani
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Regards
Kamta Prasad Singh
981890

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Streamed file upload without form from actionscript

2012-02-23 Thread chrapo
Hi,
I want to upload large image files from actionscript from Flex. The
file upload tutorial 
https://docs.djangoproject.com/en/dev/topics/http/file-uploads/
handles streamed file upload from a form so the file is transformed in
request.FILE['name'], but I don't know how to replicate this in
actionscript. I tried also to transfer the file as POST argument, but
I get error:

in handle_uploaded_file for chunk in f.chunks():
AttributeError: 'unicode' object has no attribute 'chunks'

Is it error in my python code that I have to use only request.FILE or
is it problem in my actionscript? What is the proper way to upload
file without form. Here is my actionscript code:

var upload:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest(UploadURL+"?
var="+Math.random());
var sendVars:URLVariables = new URLVariables();
var header:URLRequestHeader = new URLRequestHeader("enctype",
"multipart/form-data");
upload.dataFormat = URLLoaderDataFormat.BINARY;
upload.addEventListener(Event.COMPLETE, image.uploadedEvent);
sendVars.file = image.getBytearray(); // image is a JPEG encoded
ByteArray
request.data = sendVars;
request.method = URLRequestMethod.POST;
request.requestHeaders.push(header);
upload.load(request);

here is django part:

def upload_file(request):
  if request.method == 'POST':
handle_uploaded_file(request.POST.get('file'))
  return HttpResponse()

def handle_uploaded_file(f):
  destination = open('file.dat', 'wb+')
  for chunk in f.chunks():
  destination.write(chunk)
  destination.close()

Thanks

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django and social network

2012-02-23 Thread Alec Taylor
If I keep persisting?

Okay

PINAX!

On Thu, Feb 23, 2012 at 11:49 PM, coded kid  wrote:
> I guess my idea can help you out! Install Django 1.3. After
> installing, try and download packages like omab/social_auth that will
> enable users to log in through facebook, twitter etc. Also download
> agon_ratings that will enable users to rate. You can get those
> packages from djangopackages.com. Use Django comments for making users
> comments. You will have to write some views, models, templates codes
> for somethings. I hope you know about django?
>
> For me Pinax aint helping at all. You still have a long way to go
> though. If you keep persisting, you will get there. I'm also a noob
> though. Feel free to let me know what you think!
>
> Cheers
>
> On Feb 22, 6:53 pm, Alec Taylor  wrote:
>> k
>>
>> If you have issues, read the docs.
>>
>> If you still have issues, ask on pinax-users mailing-list not django-users.
>>
>> On Thu, Feb 23, 2012 at 3:57 AM, Lewis Satini wrote:
>>
>>
>>
>>
>>
>>
>>
>> > and I can only install basic, I had problem getting the advance install
>>
>> > On Wed, Feb 22, 2012 at 11:57 AM, Lewis Satini 
>> > wrote:
>>
>> >> How much experience do you have on pinax. Did you implemented before? do
>> >> you have the sample site, that I might able to look at? it is difficult to
>> >> install, because it have some requirement before you install it.
>>
>> >> On Wed, Feb 22, 2012 at 11:04 AM, Alec Taylor 
>> >> wrote:
>>
>> >>> Pinax
>>
>> >>>http://pinaxproject.com/
>>
>> >>> On Thu, Feb 23, 2012 at 1:50 AM, Lewis  wrote:
>> >>> > I am new in Django. I know it is a good platform.
>> >>> > I want to know if there's any plug-ins or script that do social
>> >>> > networking. I research on Pinax, but it seem very difficult to set it
>> >>> > up. These are the feature that I want to implement:
>> >>> > 1. Profile system that link to their facebook or google profile that
>> >>> > they have.
>> >>> > 2. Login with gmail account or facebook account
>> >>> > 3. able to store they login and password to local database
>> >>> > 4. able to do rating and comments
>>
>> >>> > Can someone suggest anything?
>>
>> >>> > Thanks for your help
>>
>> >>> > --
>> >>> > 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...@googlegroups.com.
>> >>> > For more options, visit this group at
>> >>>http://groups.google.com/group/django-users?hl=en.
>>
>> >>> --
>> >>> 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...@googlegroups.com.
>> >>> For more options, visit this group at
>> >>>http://groups.google.com/group/django-users?hl=en.
>>
>> >> --
>>
>> >> Artistbean.com 
>> >> SMS at (646) 450-6756
>>
>> > --
>>
>> > Artistbean.com 
>> > SMS at (646) 450-6756
>>
>> >  --
>> > 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...@googlegroups.com.
>> > For more options, visit this group at
>> >http://groups.google.com/group/django-users?hl=en.
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django and social network

2012-02-23 Thread coded kid
I guess my idea can help you out! Install Django 1.3. After
installing, try and download packages like omab/social_auth that will
enable users to log in through facebook, twitter etc. Also download
agon_ratings that will enable users to rate. You can get those
packages from djangopackages.com. Use Django comments for making users
comments. You will have to write some views, models, templates codes
for somethings. I hope you know about django?

For me Pinax aint helping at all. You still have a long way to go
though. If you keep persisting, you will get there. I'm also a noob
though. Feel free to let me know what you think!

Cheers

On Feb 22, 6:53 pm, Alec Taylor  wrote:
> k
>
> If you have issues, read the docs.
>
> If you still have issues, ask on pinax-users mailing-list not django-users.
>
> On Thu, Feb 23, 2012 at 3:57 AM, Lewis Satini wrote:
>
>
>
>
>
>
>
> > and I can only install basic, I had problem getting the advance install
>
> > On Wed, Feb 22, 2012 at 11:57 AM, Lewis Satini 
> > wrote:
>
> >> How much experience do you have on pinax. Did you implemented before? do
> >> you have the sample site, that I might able to look at? it is difficult to
> >> install, because it have some requirement before you install it.
>
> >> On Wed, Feb 22, 2012 at 11:04 AM, Alec Taylor 
> >> wrote:
>
> >>> Pinax
>
> >>>http://pinaxproject.com/
>
> >>> On Thu, Feb 23, 2012 at 1:50 AM, Lewis  wrote:
> >>> > I am new in Django. I know it is a good platform.
> >>> > I want to know if there's any plug-ins or script that do social
> >>> > networking. I research on Pinax, but it seem very difficult to set it
> >>> > up. These are the feature that I want to implement:
> >>> > 1. Profile system that link to their facebook or google profile that
> >>> > they have.
> >>> > 2. Login with gmail account or facebook account
> >>> > 3. able to store they login and password to local database
> >>> > 4. able to do rating and comments
>
> >>> > Can someone suggest anything?
>
> >>> > Thanks for your help
>
> >>> > --
> >>> > 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...@googlegroups.com.
> >>> > For more options, visit this group at
> >>>http://groups.google.com/group/django-users?hl=en.
>
> >>> --
> >>> 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...@googlegroups.com.
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/django-users?hl=en.
>
> >> --
>
> >> Artistbean.com 
> >> SMS at (646) 450-6756
>
> > --
>
> > Artistbean.com 
> > SMS at (646) 450-6756
>
> >  --
> > 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...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django Comments-Redirecting

2012-02-23 Thread coded kid
Hi guys, how can I get rid of users being directed to the “Thanks you
for your comment” page after commenting  in Django site? I users to be
redirected to the same page they commented.  I’m using Django
comments.

I’ve tried adding:



But it’s not working. Below is codes in my comment/form.html

{% load comments %}
{% get_comment_count for sol as comment_count %}
{% get_comment_list for sol as comment_list %}
{% get_comment_form for sol as form %}
{% if user.is_authenticated %}
   
{% csrf_token %}
{% if next %}{% endif %}
{% for field in form %}
{% if field.is_hidden %}
{{ field }}
{% else %}
{% if field.name != "name" and field.name != "email"
and field.name != "url" %}
{% if field.errors %}{{ field.errors }}{% endif %}
{{ field }}
{% endif %}
{% endif %}
{% endfor %}

   
{% else %}
I'm sorry, but you must be logged in to submit comments.
{% endif %}

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: social networks

2012-02-23 Thread Martey Dodoo
On Wednesday, February 22, 2012 12:25:21 PM UTC-5, yati sagade wrote:
>
> I have always used the FB API using core Python urllib and other 
> helpers(after reading the FB API docs, of course), but you may find this 
> this  and 
> thishelpful.


pyfacebook has not been updated in over 2 years and uses the deprecated 
REST API, so it would be a bad place for a beginner to start. I would try 
using either one of the various unofficial forks of the official Facebook 
SDK (I prefer PythonForFacebook's [1], but I might be biased because I have 
commit access), or one of the two "django-facebook" libraries 
(PythonForFacebook's [2] or Thierry Schellenbach's [3]).

[1]: https://github.com/pythonforfacebook/facebook-sdk
[2]: https://github.com/pythonforfacebook/django-facebook
[3]: https://github.com/tschellenbach/Django-facebook

-- 
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/-/SvmBG6s1YcIJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Mysql problem

2012-02-23 Thread dizzydoc
http://www.slideshare.net/danielroseman/advanced-django-orm-techniques

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Mysql problem

2012-02-23 Thread kalyani ram
Hey ppl!

I there anybody who can help me on a problem with a slow page process
with mysql as a backend having about 2lakh records ??

Thanks in advance.

Regards,
kalyani

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.