Re: Migrating ManyToManyField to bigint?

2022-05-17 Thread Jeremy Lainé
I really needed an in-place migration as reloading tens of millions of entries was not practical. I ended up using the migrations I mentioned with one migration per M2M intermediate table to avoid locking multiple tables at once. Cheers, Jeremy On Monday, May 16, 2022 at 7:07:19 PM UTC+2 makza

Re: django-admin-honeypot

2022-05-16 Thread Jeremy Lainé
is that django-admin-honeypot needs to be updated to work with recent Django versions, see: https://github.com/dmpayton/django-admin-honeypot/issues/87 Cheers, Jeremy On Tuesday, May 10, 2022 at 7:48:38 AM UTC+2 chsuresh...@gmail.com wrote: > Hi , > While i am including the django-admin-ho

Re: Migrating ManyToManyField to bigint?

2022-05-16 Thread Jeremy Lainé
bigint', 'ALTER SEQUENCE "myapp_book_tags_id_seq" AS bigint', ], elidable=True, ), ] Kind regards, Jeremy On Monday, May 16, 2022 at 8:52:06 AM UTC+2 Jeremy Lainé wrote: > Hi Mike, > > Thanks for the reply. For future reference, it w

Re: Migrating ManyToManyField to bigint?

2022-05-15 Thread Jeremy Lainé
postgresql on each m2m table? Specifically, is it purely a matter of altering the "id" column type, or does something need to be done to the index? Cheers, Jeremy [1] https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field [2] https://code.djangoproject.com/ticket/32674 On S

Migrating ManyToManyField to bigint?

2022-05-14 Thread Jeremy Lainé
t the database schema, I see that the "intermediate" tables for many-to-many relations still have a primary key of type "integer" (on postgresql). This means I'm no closer to avoiding 32bit primary key exhaustion! Does anyone know how I can address this? Many than

Re: How do I use Daphne without websocket "secure"?

2020-01-30 Thread Jeremy Wai
Nevermind. heroku has SSL on by default. There's no option to turn it off. On Thursday, January 30, 2020 at 12:04:05 AM UTC-8, Jeremy Wai wrote: > > I have a embedded system that doesn't support the 'secure' part of > websocket secure, how do i disable the websock

Re: How do I use Daphne without websocket "secure"?

2020-01-30 Thread Jeremy Wai
I am not using Nginx, I am using daphne, django/channel. On Thursday, January 30, 2020 at 2:15:25 AM UTC-8, Aldian Fazrihady wrote: > > I don't think you should do anything. > My daphne becomes secure/wss because it is behind nginx HTTP termination. > > On Thu, Jan 30, 2020 a

Re: How do I use Daphne without websocket "secure"?

2020-01-30 Thread Jeremy Wai
My procfile has this line: web: daphne APbackend.asgi:application --port $PORT --bind 0.0.0.0 On Thursday, January 30, 2020 at 12:04:05 AM UTC-8, Jeremy Wai wrote: > > I have a embedded system that doesn't support the 'secure' part of > websocket secure, how do i disab

How do I use Daphne without websocket "secure"?

2020-01-30 Thread Jeremy Wai
I have a embedded system that doesn't support the 'secure' part of websocket secure, how do i disable the websocket "secure" part of my daphne application? I don't see it anywhere in my code that i've actually set it up. -- You received this message because you are subscribed to the Google Gro

Re: How do I make my webhook object run a websocket function?

2020-01-09 Thread Jeremy Wai
-8, Jeremy Wai wrote: > > I got a heroku server running on one web processing, in the routing.py I > have > > application = ProtocolTypeRouter({ > 'websocket': backEndConsumer, > 'http': frontEndConsumer, > }) > > my frontEn

How do I make my webhook object run a websocket function?

2020-01-08 Thread Jeremy Wai
I got a heroku server running on one web processing, in the routing.py I have application = ProtocolTypeRouter({ 'websocket': backEndConsumer, 'http': frontEndConsumer, }) my frontEndConsumer handles the http webhook requests and my backEndConsumer handles all my websock

How do I make my webhook run a function in websocket?

2020-01-08 Thread Jeremy Wai
theisnfksdnflksd why does this not work when i have my actual post? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. T

Django content types and sqlmigrate

2018-05-09 Thread jeremy
creating new models? I've been unable to find much information about this using Google. Thank you very much for your assistance! Jeremy -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

Re: Looking for a way to broadcast live video streams. Is it possible with Django ?

2015-01-27 Thread Jeremy Hermelin
Thank you Russ and Cal for your answers. I'll take a look at WebRTC that seems to be a revolution in that domain, and it's a matter of time before it will spread to Safari or IE. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Looking for a way to broadcast live video streams. Is it possible with Django ?

2015-01-27 Thread Jeremy Hermelin
#x27;m new in Django, and also in Python, then I'm sorry if the answer is obvious. I've made some research on djangopackages but haven't find anything. Have an awesome and fantastic day, Jeremy By the way : Wooohhh Django is so easy and powerful at the same time ! -- You

Re: Django Core mentorship list

2013-04-03 Thread Jeremy Dunck
Ahem: [1] https://groups.google.com/forum/?fromgroups#!forum/django-core-mentorship :) On Wed, Apr 3, 2013 at 11:44 AM, Jeremy Dunck wrote: > Hey all, > I've just created django-core-mentorship[1] with founding members > including Carl Meyer, Jacob Kaplan-Moss, Simon Charett

Django Core mentorship list

2013-04-03 Thread Jeremy Dunck
Hey all, I've just created django-core-mentorship[1] with founding members including Carl Meyer, Jacob Kaplan-Moss, Simon Charette, and Russell Keith-Magee. Modeled after pythonmentors.com, the intention is to help more people make the leap from using django to contributing to it. It is a com

Re: Should we have a database independent SQL like query language in Django?

2012-10-06 Thread Jeremy Sandell
On Sat, Oct 6, 2012 at 10:38 AM, Yugal Jindle wrote: > *Note :* > > - I know we have `Django ORM` already that keeps things database > independent and converts to the database specific `SQL` queries. > - Once things starts getting complicated it is preferred to write `raw > SQL` queries for bet

Re: Getting tuple of (sql, params) from the ORM.

2012-06-26 Thread Jeremy Dunck
On Tue, Jun 26, 2012 at 11:40 AM, David Novakovic wrote: > Hey all, > > Is it possible to get a tuple of (sql, params) from an ORM queryset? Yep: sql, params = qs.query.get_compiler('default').as_sql() (Fancy meeting you here. :)) -- You received this message because you are subscribed to the

Re: Django (and Python) speakers

2012-02-07 Thread Jeremy Dunck
I'd also like to see Malcolm again, but I fear that'll take a trip to Sydney. :) On Tue, Feb 7, 2012 at 9:29 PM, Jeremy Dunck wrote: > The original musketeers, Jacob, Simon, and Adrian, are all great > speakers, of course. > > I thought Jeff Balough, Mike Malone, and Er

Re: Django (and Python) speakers

2012-02-07 Thread Jeremy Dunck
The original musketeers, Jacob, Simon, and Adrian, are all great speakers, of course. I thought Jeff Balough, Mike Malone, and Eric Florenzano did very well on their talks. David Cramer represents Disqus well and has recently released Sentry 2. As a particular pain points for me, I'd like to hea

Handling copy on a small project

2012-01-19 Thread Jeremy Boyd
as been asked before, but searching for "copy" and "text" seems a bit futile after a few pages of results. -- Jeremy Boyd e: boy...@gmail.com c: (512) 586-4587 -- You received this message because you are subscribed to the Google Groups "Django users" g

Fixture migrations using South?

2011-11-30 Thread Jeremy Dunck
I have some test fixtures with scenarios under test. Later, I need to migrate (with South) the DB schema around, which of cours necessitates changing domain and test code. A common problem I run into, though, is that I also need to migrate the data in my fixtures. It is possible to create a new

Cascading Deletes on ManyToManyField

2011-08-17 Thread Jeremy Keeshin
because I did not understand cascading deletes, so I just want to make sure. I read in the docs that you can customize the on_delete behavior in Django 1.3, but I am not quite clear how this applies to ManyToMany fields. What is the delete behavior on ManyToManyFields? Thanks, Jeremy -- You

Re: cannot import blank value to IntegerField()

2011-08-04 Thread Jeremy Dunck
On Wed, Aug 3, 2011 at 5:08 PM, Didymus wrote: ... > ERROR:  invalid input syntax for integer: "" > CONTEXT:  COPY train_emp, line 1, column phone: "" ... > I have tried the following code in models.py > > phone  = models.IntegerField(blank=True) > phone  = models.IntegerField(null=True) > phone  

Re: How to display Scientific Notation for a field on the admin pages?

2011-08-04 Thread Jeremy Dunck
On Tue, Aug 2, 2011 at 12:32 PM, DjangoOfWar wrote: > Right now I have a Decimal field in my model but I'd like it to > display as scientific notation on the admin pages. > > Do I need to make a custom model field, that uses a custom form field > or is there an easier way? > > (I'm on Django 1.2 i

Django, Pinax, Dreamhost Project

2011-07-26 Thread Jeremy
Hello all, I'm not sure if this is the right place to post this, but was sent this direction, so if not please let me know. I'm incredibly new to Django, and I'm trying to set up a personal site with a Pinax install. I chose Pinax because most of what the site needs to do, Pinax is capable of "ou

.exclude method generating incorrect sql?

2011-07-17 Thread Jeremy
I have a query where it looks like Django 1.3 is generating incorrect sql. It involves these four models. class Aaa(models.Model): pass class Bbb(models.Model): aaa = models.ForeignKey(Aaa, related_name='bbbs') class Ccc(models.Model): bbb = models.ForeignKey(Bbb, related_name='cccs'

Re: Dreamhost Virtualenv Question

2011-07-05 Thread Jeremy
AHHH, that makes a little more sense. I'm trying to install apps from Github. Things like Pinax, and different individual blogging apps so that I can "plug" them into one Django project to give it multiple bits of social functionality. Obviously I'm having a lot of trouble (some of it being that

Dreamhost Virtualenv Question

2011-07-05 Thread Jeremy
Hello, I'm completely new to Django and the concept of virtualenv. I'm trying to set up a web site and add in third party applications such as the zinnia blogging app, but having some issues. I believe that I've set up the virtualenv correctly, but could someone walk me through detailed steps as t

Django for lean - app recommendation - A/B, cohort, user lifecycle, etc.

2011-05-22 Thread Jeremy Dunck
er favorites in this area? Cheers, Jeremy -- 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...@g

Re: Implementing a ldap db backend

2011-05-03 Thread Jeremy Lainé
o that it is now a proper database backend. As an added bonus, thanks to django's multi-database support you can now have multiple LDAP connections and use a router to direct read/writes to the proper LDAP connection. Cheers, Jeremy -- You received this message because you are subscribed to

Subutai Corporation seeks Lead Server Programmer in San Francisco

2011-01-24 Thread Jeremy Bornstein
Greetings all! Subutai Corporation is looking for a Lead Server Programmer for its PULP platform. PULP is an end-to-end system for the creation and publishing of social-enabled content across a wide variety of connected platforms. PULP supports collaborative professional and community authoring o

Re: How can I flush my response stream in django?

2010-10-06 Thread Jeremy Dunck
On Wed, Oct 6, 2010 at 3:58 PM, Emil Stenström wrote: > On Aug 24 2007, 8:18 pm, "Jeremy Dunck" wrote: >> >> On 8/24/07, whitesmell wrote: >> > One of my  response content was build by several synchronous method, >> > how can Iflushmy  response to clie

Re: New User - Writing your first Django app part 1 crashed

2010-04-12 Thread Jeremy Dunck
On Sat, Mar 27, 2010 at 10:40 PM, Paul Harouff wrote: > On Sat, Mar 27, 2010 at 2:45 AM, Thierry Chich > wrote: >> Are you sure that the postgres driver of your jython is installed ? >> > > Yes. But I don't believe Jython is seeing it. > > I might have to switch to python. I was hoping to use jy

Re: how to run a given project

2010-03-16 Thread Jeremy Sandell
ct? > > kind regards > hk Hi, Is PostGIS already set up on that server? If so, verify that the table was created from the template_postgis template. Just a wild guess. Hope it helps. :D Jeremy -- You received this message because you are subscribed to the Google Groups &qu

Re: How to make django use a different python interpreter located at some random location.

2010-03-11 Thread Jeremy Sandell
lenv. It will probably do what you need, and it's a far cleaner solution than manually putting the path to your random interpreter in manage.py. The latter works for FastCGI, but it's quite ugly. Jeremy -- You received this message because you are subscribed to the Google Groups "

Re: Banned from the #django irc channel

2010-02-27 Thread Jeremy
I've run into this recently as well when I wasn't registered with Nickserv. You might try registering/authenticating before joining the channel. On Feb 26, 8:39 pm, Matías Iturburu wrote: > Hi guys, Sorry to bring such an off topic, but I've notice that I'm banned > on the django irc channel (at

Re: RV: photos sexy

2010-02-26 Thread Jeremy Dunck
That's enough, folks. Gisela seems to be doing some off-topic work and made a silly mistake using gmail autocomplete. Let's let this one go. There's no need to be crass or misogynist. On Fri, Feb 26, 2010 at 11:22 AM, Juan Hernandez wrote: > Lastima que esa no seas tu Gisela!! jajajaj > > sld

Re: what if I need to use two objects to get a third object in my templates?

2010-02-21 Thread Jeremy Dillworth
On Feb 21, 11:14 am, Jeremy Dillworth wrote: > and a view named list: > > def list(request): >     people = Person.objects.all() >     for p in people: >         p.columns = [None, None, None] >         for c in DataPoint.objects.filter(person=p, value__gt=4): >      

Re: what if I need to use two objects to get a third object in my templates?

2010-02-21 Thread Jeremy Dillworth
You could also put a columns property onto each person object. Given the models: class Person(models.Model): name = models.CharField(max_length=30) class DataPoint(models.Model): person = models.ForeignKey(Person) value = models.IntegerField() and a view named list: def list(reques

Re: Model for debt, credit and balance

2010-02-19 Thread Jeremy Dillworth
balance + tran.debit balance = balance - tran.credit transaction_list.append({'transaction':tran,'balance':balance}) --Jeremy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: How to send form via email

2009-07-29 Thread Jeremy Boyd
Kolo, I'm not positive this is what you're asking, but it seems to me that a) you might want to build up a string with the message as you'd like it to be displayed. So, for example: subject = field1 + " has sent you a new message" message = " ".join("You have a new message! Here are the form fie

Re: pdb session and auto-reload: input problem

2009-07-24 Thread Jeremy Sule
9-07-23 at 14:11 +0100, Jeremy Sule wrote: > > Hi everyone, > > > > I use pdb a lot and just drop "import pdb; pdb.set_trace()" here and > > there in my code. > > Often I find I have to change my code and do the change in the source > > code and save

pdb session and auto-reload: input problem

2009-07-23 Thread Jeremy Sule
Hi everyone, I use pdb a lot and just drop "import pdb; pdb.set_trace()" here and there in my code. Often I find I have to change my code and do the change in the source code and save it. The auto reload feature of django then reloads the files and restarts the development server (nice). The pro

OpenStreetMap.js error: OpenLayers.Layer.OSM is undefined

2009-06-28 Thread Jeremy Epstein
s is all a silly mistake on my part. But if it is a bug, then I'll go ahead and submit it to the queue, and it would be great to get it fixed. Thanks, Jeremy. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Choices validation on model fields

2009-04-30 Thread Jeremy Epstein
x27; % (self.choice_type, self.choice_provided, '\', \''.join(self.valid_choices)) - How to test it: $ python manage.py shell >>> from bar.foo.models import Foo >>> foo1 = Foo(name='Foo Hoo', foo_type='that') (works fine, 'that&#

Dallas Django sprint 4/18 - 4/19 at CoHabitat

2009-04-07 Thread Jeremy Dunck
We've firmed up the Dallas Django sprint plans: Django 1.1 is around the corner, but there are lots of bugs left to squash. Come meet the other Django people around Dallas and check out Cohabitat, the great coworking spot in uptown. We'll start Saturday, April 18, 2009 at 9:00am through Sunday,

[OT] python + rrdtool?

2009-03-06 Thread Jeremy Dunck
Does anyone use a python interface to rrdtool? I've looked around, and it seems there are several interfaces, but non have been updated recently. If someone could report success with one, I'd appreciate it. --~--~-~--~~~---~--~~ You received this message because

Re: Django Development Process

2009-01-11 Thread Jeremy Dunck
On Sun, Jan 11, 2009 at 9:03 PM, AlexiPoliski wrote: ... > What I would like to ask is, from more experienced Django developers, > what way do you prefer to create your applications? Models then views > then templates? Models then templates then views? Or models then views > AND templates concurr

Re: Admin Site

2008-12-17 Thread Jeremy Dunck
On Wed, Dec 17, 2008 at 11:34 AM, samira wrote: > > I active admin site for Django 1.0.2, it is correct on my local, but > I > see below error on server: > > emplateSyntaxError at /mywebSite/admin/ > > > Caught an exception while rendering: Tried activateAccount in module > mywebSite.mywebSite_ap

Re: Django Equivalent to Rails Rumble

2008-10-25 Thread Jeremy Sandell
(yearly?) contest where each contestant has 48 hours to build an application; the submissions are voted on by registered users (kind of like Cheese Rater). 5 voters are randomly selected to win $25.00 Amazon gift cards, and various winners are given prizes which are suppli

Re: Boosting your productivity when debugging Django apps

2008-10-06 Thread Jeremy Sandell
winpdb has been a life saver for me, as well. I had been using pyDev + Eclipse (for the debugger), with the viPlugin (for my sanity). The amount of ram used just to fire up the debugger made me want to cry. winpdb + vim (with Python bindings) solved that issue very nicely. I can code on my old Va

Re: actual django stack

2008-09-27 Thread Jeremy Sandell
On Sep 26, 1:25 pm, David Zhou <[EMAIL PROTECTED]> wrote: > > I've also heard good things about WSGI -- though I haven't heavily   > tested its stability compared to, say, mod_python. > --- > David Zhou > [EMAIL PROTECTED] FWIW, WSGI has thus far worked wonderfully for me, and using daemon mode

User.get_profile() (was: Re: Reusable models?)

2008-05-21 Thread Jeremy Bornstein
ile"). Is there any reason to set up and use user_get_profile() instead? -Jeremy P.S. Since I almost never post, I'd like to add a huge THANK YOU to all the contributors for Django, which I use just about every day and with which I have built many projects. --~--~-~--~~

Re: Just learning the ropes with Django and authentication

2008-04-01 Thread Jeremy Sandell
Probably the best way to understand how it works is to check the source. under django/contrib/admin/views/decorators.py is the view (_display_login_form), and under django/contrib/admin/templates/admin/ login.html is the form itself. I'd also suggest looking at django/contrib/auth/ for futher ins

Re: Example application

2008-04-01 Thread Jeremy Sandell
There are some great resources available here: http://code.djangoproject.com/wiki/DjangoResources Though you might be better served creating a mockup site in Django, and implementing such things using the rest of the Django documentation (outside of the tutorials, I mean). Anyway, good luck! On

Re: IDE

2008-03-05 Thread Jeremy Sandell
On Mar 5, 3:06 pm, gabriel <[EMAIL PROTECTED]> wrote: > What do you think about : > > eclipse + plugins( pydev + html/css ) > eric4 + django plugin > SPE - is there plugin for django Eclipse + Pydev extension (especially with the non-free remote debugger) is really handy, though I've found Eclip

Re: Access cycle var in template - gentle hack

2008-03-04 Thread Jeremy Sandell
What I meant was that you could use the catch tag to avoid having to use html comments to hide it. (: It's still just as much of a hack, of course, but not quite as visible after rendering. On Feb 28, 3:51 am, itpaul <[EMAIL PROTECTED]> wrote: > ok. like this? > > {% for p in post_list %} >    

transaction.commit_manually

2008-02-12 Thread Jeremy Dunck
n this function, I'd like to isolate it from the calling view's functionality. Anyway, I thought commit_manually set up a nested transaction, but apparently it doesn't. So, if you're using it, can you explain how it's been useful to you? I&#x

Re: syncdb and postgres problems

2008-01-25 Thread Jeremy Dunck
On Jan 25, 2008 11:55 AM, Martin Ostrovsky <[EMAIL PROTECTED]> wrote: > > I'm trying to run syncdb on a clean database (no other tables etc.) in > postgres. It produces the standard Postgres error: ... > I know there's nothing wrong with my settings file and/or models code > because I'm just tryi

Re: Understanding Django and JSON

2008-01-22 Thread Jeremy Whitlock
> Server-side code > - > . > json_data = serializers.deserialize("json", request.POST['data']) > print "\n" + str(sjson_data) > . Typo above. Should be: print "\n" + str(json_data) --~--~-~--~~~---~--~~ You received this message be

Understanding Django and JSON

2008-01-22 Thread Jeremy Whitlock
uthz_path": "/Users/jwhitlock/dev/raven/server/raven_server/../ raven_server/svn/data/1/container_1.authz", "active": true, "path": "/ Users/jwhitlock/dev/raven/server/raven_server/../raven_server/svn/data/ 1"}}] >From what I can tell, the strings are t

Re: Newform-admin: problem with loading admin templates and templatetags

2007-12-27 Thread Jeremy Dunck
On Dec 27, 2007 2:15 AM, Webchemist <[EMAIL PROTECTED]> wrote: > > Jeremy, thanks to reply! > > > What you really want here is to have > > 'django.template.loaders.app_directories.load_template_source' in your > > TEMPLATE_LOADERS. That's really wh

Re: Datetime ordering correct?

2007-12-26 Thread Jeremy Dunck
On Dec 26, 2007 4:04 PM, Ryan K <[EMAIL PROTECTED]> wrote: > def get_sp_from_date_range(start_date, end_date, order=False): > s_products = ScheduledProduct.objects.filter(start__gt=start_date) > s_products = s_products.filter(finish__lt=end_date) > if order: > return s_products

Re: Newform-admin: problem with loading admin templates and templatetags

2007-12-26 Thread Jeremy Dunck
e.djangoproject.com/browser/django/branches/newforms-admin/django/template/__init__.py#L1000 I'd just see what paths were coming in there and go from there. If you're not sure how to proceed but changing TEMPLATE_LOADERS didn't help, please paste the entire raw stack trace for the e

Re: Many2Many Lookup query

2007-12-19 Thread Jeremy Dunck
On Dec 19, 2007 2:20 AM, Julien <[EMAIL PROTECTED]> wrote: ... > So far, my query looks like this: > (Thread.objects.filter(message__sender=request.user) | > Thread.filter(message__recipients=request.user)).distinct() > > I'm not sure about the "message__recipients=request.user". > Do you know how

Re: Catching 413 response

2007-12-11 Thread Jeremy Dunck
I think you want tramline. Or you want ticket #2070 Sorry you've received no helpful response in the meantime. On Dec 7, 2007 8:58 AM, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > > Did anybody manage to catch in Django 413 response (request entity too > large), thrown by http servers eg. when size

Re: Performance of a django website

2007-12-11 Thread Jeremy Dunck
On Dec 11, 2007 1:39 PM, Richard Coleman <[EMAIL PROTECTED]> wrote: ... > > > I think a large part of my question really comes down to "Is 300 > requests per second reasonable for an uncached django site on a single > machine?". Maybe it is. > > We are looking at using the memcached API in our co

Re: Performance of a django website

2007-12-11 Thread Jeremy Dunck
On Dec 11, 2007 1:21 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > Hi again, > > > 3. I'm using prefork MPM on apache with maxclients set to 1000. > > Apart from Joe's excellent profiling suggestion, I would recommend > reducing maxclients to a much lower value (like say 100) and then > increas

Re: Performance of a django website

2007-12-11 Thread Jeremy Dunck
On Dec 11, 2007 12:18 PM, Joe <[EMAIL PROTECTED]> wrote: > > I've found the largest memory hog to be the native way related tables > are setup. > > Check class definitions with related tables and edit as such: > > class ...(models.Mode): > relatedtable= models.ForeignKey(RelatedTable, core=Tru

Re: Checking if in query set...

2007-12-09 Thread Jeremy Dunck
On Dec 9, 2007 8:43 PM, radioflyer <[EMAIL PROTECTED]> wrote: > > On Dec 9, 8:52 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > > > On Dec 9, 2007 5:06 PM, radioflyer <[EMAIL PROTECTED]> wrote: > > > > > > > > >

Re: Checking if in query set...

2007-12-09 Thread Jeremy Dunck
On Dec 9, 2007 5:06 PM, radioflyer <[EMAIL PROTECTED]> wrote: > > parents = students.parents.all() > > And then check if logged in user.id matches against any of the parent > ids. It'd help if you shared your model definitions; any answers given will be guesses as it is. > Is there a query set m

Re: static on separate what?

2007-12-09 Thread Jeremy Dunck
On Dec 9, 2007 3:07 PM, andy baxter <[EMAIL PROTECTED]> wrote: > Does this mean running the django server on a different port to the > static files, or is there a way to do it through virtual hosts? > If you only have one IP, you could run media off a non-standard port. If you have multiple IPs,

Re: Issues trying to Caching a View

2007-12-05 Thread Jeremy Dunck
Try setting your mime type appropriately. HttpResponse(mimetype="application/x-javascript") Notice this in your view-generated-js response: Content-Type: text/html; charset=utf-8 On Dec 5, 2007 3:08 PM, Matt <[EMAIL PROTECTED]> wrote: > > Alright... still haven't figured it out. The Vary: Cookie

Re: django on iis

2007-11-29 Thread Jeremy Dunck
Nice. Any chance of getting this page translated to English? http://code.google.com/p/pyisapi-scgi/wiki/howtousepyisapiscgi Unfortunately, I can't help. :( On Nov 29, 2007 10:10 AM, 头太晕 <[EMAIL PROTECTED]> wrote: > > pyISAPI_SCGI is a ISAPI Extension for SCGI. It can run django on iis. > > http

Re: 'Context' object has no attribute 'push'

2007-11-28 Thread Jeremy Dunck
On Nov 28, 2007 9:14 AM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-11-27 at 16:47 -0800, eberg wrote: > > To continue this monolouge I worked around the problem by omitting the > > Context object and render the page with locals() instead. > > This called for unsetting all "p

Re: INTERNAL_IPS and netmask/CIDR notation

2007-11-23 Thread Jeremy Dunck
On Nov 23, 2007 10:57 AM, Tim Chase <[EMAIL PROTECTED]> wrote: > > Hmm...your code seems to reference an "ipv4" module I don't have > here on either of my Debian boxes, or my Win32 box at work. That > could have been handy to have, rather than trying to reinvent the > wheel. The closest I could

Re: INTERNAL_IPS and netmask/CIDR notation

2007-11-23 Thread Jeremy Dunck
On Nov 23, 2007 10:32 AM, Tim Chase <[EMAIL PROTECTED]> wrote: > > I don't know whether this would be better done by replacing the > INTERNAL_IPS functionality, or adding a second similar means, but > for my app, it's helpful to know if the user is "internal" or > "external" as defined by several

Re: Street address normalisation

2007-11-20 Thread Jeremy Dunck
On Nov 20, 2007 3:26 PM, hajo <[EMAIL PROTECTED]> wrote: > > Thanks a lot; will defintely look into this one! > The other solution I looked at was to send an address to google (We > have a commercial deal with them; I work for a failry large > newspaper); get it geocoded and then go from there...

Re: weird "can't adapt" error

2007-11-20 Thread Jeremy Dunck
"Can't adapt" is quite a vague error that psycopg2 issues. Your issue is (apparently) something to do with encoding, and that's different than Sandro's issue. Please include more information, especially if you do decide to file a ticket. I can't help with the info given so far... On Nov 20, 200

Re: weird "can't adapt" error

2007-11-20 Thread Jeremy Dunck
On Oct 26, 2007 2:47 AM, sandro dentella <[EMAIL PROTECTED]> wrote: ... > > once again I stumble into this problem. This time I gathered some > more > info so I describe them. http://groups.google.com/group/django-users/browse_thread/thread/091aa6c088f6c090 I understand you're running wsgi r

Re: postgresql problem with django api (iregex)

2007-11-20 Thread Jeremy Dunck
On Nov 20, 2007 7:12 AM, cesco <[EMAIL PROTECTED]> wrote: ... > isn't the django API supposed to be portable across different database > platforms? Does iregex make an exception because of SQLite lack of reg- > exp support? It tries, but isn't heroic. The options for total portability would be e

Re: Strip Illegal Characters - Django Admin

2007-11-15 Thread Jeremy Dunck
On Nov 15, 2007 1:04 PM, Joel Hooks <[EMAIL PROTECTED]> wrote: > > My users are cutting and pasting descriptions from Word, and this > causes HTTP 500 errors with Django AMF (but not Django more broadly.) > This textbox that I am typing in here on groups.google.com won't allow > me to paste the of

Re: Django or Cheetah (why not both)?

2007-11-12 Thread Jeremy Dunck
On Nov 11, 2007 11:51 PM, justquick <[EMAIL PROTECTED]> wrote: > > Now the project is going under the name django_cheetahtemplates to > avoid contrib namespace confusion. Regardless of name, having cheetah > templates is very handy and increases the rendering times of your > templates. We are work

Re: Using GeoDjango features with current trunk?

2007-11-05 Thread Jeremy Dunck
unk, so there are fewer people available to answer your questions. You should be prepared to be involved in troubleshooting the branch. Cheers, Jeremy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &

Re: GeoDjango

2007-11-03 Thread Jeremy Dunck
It's still a bit early in GeoDjango's life and functionality. Conversation has been occasional and with a relatively small number of participants. I haven't heard any complaints about the topics for discussion. I agree that GIS stuff may be a bit out of scope for dj-u, but as it pertains to bugs

Re: Caching querysets

2007-11-01 Thread Jeremy Dunck
On 11/1/07, Joe <[EMAIL PROTECTED]> wrote: > Correct me if I'm wrong, but wouldn't this place more load on the > server to to this, as an anonymous user visiting the site for the > first time would start a new session, and therefore bypass the cache? Sessions aren't created unless you modify a v

Re: Off Topic: Slug regular expression

2007-11-01 Thread Jeremy Dunck
On 11/1/07, cjl <[EMAIL PROTECTED]> wrote: > > Do I need it if Django is already appending slashes? > No. Writing regular expressions is obviously something that can be done different ways. I think you should write your URLconfs expecting the slashes to be there so that you let Django append it

Re: Off Topic: Slug regular expression

2007-10-31 Thread Jeremy Dunck
On 10/31/07, cjl <[EMAIL PROTECTED]> wrote: ... > > > > Welcome to the transition between steps #1 and #2 ;) > > Actually, I think I'm still at step 0.5, the one where I wish someone > would post a library of frequently used Django URLconf regular > expressions, so I could 'borrow' them. > This i

Re: ANN: Satchmo 0.6 Released

2007-10-31 Thread Jeremy Dunck
On 10/31/07, Chris Moffitt <[EMAIL PROTECTED]> wrote: > > There have been some spurious routing issues but it looks fine now. > Are you still not seeing it? Yep, up now. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: ANN: Security fix to i18n framework

2007-10-30 Thread Jeremy Dunck
On 10/31/07, Jason Cui <[EMAIL PROTECTED]> wrote: > 2007/10/31, Malcolm Tredinnick <[EMAIL PROTECTED]>: > > > > On Tue, 2007-10-30 at 00:37 -0700, Jason Cui wrote: > > > When I update my site from 0.96 to 0.96.1,my internationalize function > > > won't work for firefox, but fine for IE. > > > I us

Re: ANN: Satchmo 0.6 Released

2007-10-30 Thread Jeremy Dunck
On 10/30/07, Chris Moffitt <[EMAIL PROTECTED]> wrote: > > After a little bit of confusion with my rss feed, I am very pleased to > announce that release 0.6 of Satchmo is really available now. Congratulations. ... > You can learn more by visiting the main satchmo site at - > http://www.satchmopr

Re: serving django project through ssl and without ssl at the same time?!

2007-10-30 Thread Jeremy Dunck
On 10/30/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > On Oct 31, 10:23 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: ... > > This is the current logic: > > return 'HTTPS' in self._req.subprocess_env and > > self._req.subprocess_env

Re: serving django project through ssl and without ssl at the same time?!

2007-10-30 Thread Jeremy Dunck
On 10/30/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: ... > In mod_wsgi, although the application entry point is defined twice, > mod_wsgi will recognise that they are on 80/443 for the same site and > ensure that only one Django instance runs in each Apache process, but > with both HTTP and HT

Re: cursor.execute returns LONG

2007-10-29 Thread Jeremy Dunck
On 10/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > So I have a function in views: > # > def getEntries(user): > """Returns unique entries and page views for each of last 30 day > """ > cursor = connection.cursor() > query = cursor.execute('SELECT

Re: Lost in why "UnicodeDecodeError" on changeset 6601

2007-10-26 Thread Jeremy Dunck
On 10/26/07, mamcxyz <[EMAIL PROTECTED]> wrote: > > > What's the type and value of "request.content"? What's the type and > > value of "text" ? > > self.response= Err, please give the type and value of request.*content*, not request. :) ... > 'content-type': ('Content-Type', 'text/html; charse

Re: Lost in why "UnicodeDecodeError" on changeset 6601

2007-10-26 Thread Jeremy Dunck
On 10/26/07, mamcxyz <[EMAIL PROTECTED]> wrote: > > self.assertContains(self.response,u'Buscar:') > File "D:\Programacion\Python\Python24\lib\site-packages\django\test > \testcases.py", line 111, in assertContains > real_count = response.content.count(text) > UnicodeDecodeError: 'ascii'

Re: which Django version to use for live site to be released in end of february 2008

2007-10-23 Thread Jeremy Dunck
AIL PROTECTED]> wrote: > > Not for the February/March 08 release, but yes, I will need it by the > last quarter of 2008. > > Ashish > On Oct 23, 8:18 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > > On 10/23/07, ydjango <[EMAIL PROTECTED]> wrote:

Re: which Django version to use for live site to be released in end of february 2008

2007-10-23 Thread Jeremy Dunck
On 10/23/07, ydjango <[EMAIL PROTECTED]> wrote: > > I am working on product which will be released end of february. I am > planning to use Django for building the site. I am new to Django > > Which version should I use - SVN or 0.96? > > If I use 0.96, I am worried migration to 1.0 will be very pa

  1   2   3   4   5   6   7   8   9   >