Re: Loading initial data with a post_syncdb hook?

2011-05-08 Thread Adam Seering
On May 8, 10:53 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Sun, May 8, 2011 at 10:13 PM, Adam Seering <aseer...@mit.edu> wrote: > > (Incidentally, sorry if this is a duplicate; my original reply, > > identical text, doesn't show up on groups.google.com...) >

Re: Loading initial data with a post_syncdb hook?

2011-05-09 Thread Adam Seering
On May 9, 12:24 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, May 9, 2011 at 12:56 AM, Adam Seering <aseer...@mit.edu> wrote: > > On May 8, 10:53 pm, Karen Tracey <kmtra...@gmail.com> wrote:> > > > The change you have noticed is documented in the 1

Error "Cant import.." during manage.py syncdb

2011-08-04 Thread Adam Zedan
Hi i am having problem importing a module in my settings.py located in "D:\Django-1.3\django\bin\cms" I added INSTALLED_APPS = ( . . 'coltrane', ) The folder coltrane is next to the cms folder. Anyways when i go like as shown in cmd I get D:\Django-1.3\django\bin\cms>manage.py

Re: Error "Cant import.." during manage.py syncdb

2011-08-04 Thread Adam Zedan
Problem Solved...just needed to register environmental variables On Aug 5, 2:58 am, Adam Zedan <hayya...@gmail.com> wrote: > Hi i am having problem importing a module > in my settings.py located in "D:\Django-1.3\django\bin\cms" >

Question about imports..Python Dejango and Models

2011-08-05 Thread Adam Zedan
Hi while going through the Django Book I ran into the following code Being fairly new to Python the code kind of confused me from django.db import models --->lineA class Publisher(models.Model): --->line B Consider line A from django.db import models This means that in the django directory

Displaying results in Template in a Table ? What is the proper way ?Any app?

2011-08-10 Thread Adam Zedan
Hi i wanted to know what do most people here do when they need to show results in a template which just needs to be displayed in Table. For example displaying data from a db etc in a template. I did try an app called django_tables2 but it just seems really simple with respect to presentation. I

Re: Displaying results in Template in a Table ? What is the proper way ?Any app?

2011-08-10 Thread Adam Zedan
Or in other words a good datagrid to use with Djano...What do u people suggest or use?? On Aug 11, 1:52 am, Adam Zedan <zedan...@gmail.com> wrote: > Hi i wanted to know what do most people here do when they need to show > results in a template which just needs to be displa

data modeling in Django

2011-08-11 Thread Adam Zedan
hi coming from a background dealing with Relational database, i am q bit unfamiliar to the concepts of data modelling such as one to one,one to many etc.When to use them why to use them and the drawbacks of not using them.Could anyone please suggest a good resource(books,websites..) on quickly

using djblets data grid.. simple question

2011-08-14 Thread Adam Zedan
I am trying to construct a simplest example to see the djblets data grid in action suppose everything is in my view.py views.py - class UserDataGrid(DataGrid): username = Column("Country Name", sortable=True) first_name = Column("Population", sortable=True) last_name =

For loop problem in template..Is this correct

2011-08-15 Thread Adam Zedan
Hi i am getting a problem with my for loop which i used in my template.Could you kindly let me know what is going wrong in here. The for loop is in a jquery function $(function() { var data = []; {% for x in range(len(content)) %} data[i] =

Re: For loop problem in template..Is this correct

2011-08-15 Thread Adam Zedan
m 'range(len(content))' -- On Tue, Aug 16, 2011 at 4:50 AM, Konstantin Sushenko <ako...@gmail.com>wrote: > hello, > > as a result of this you will have a series of 'data[i] = ...' > assignments in your output. where 'i' would be undefined. > > konstant

Re: For loop problem in template..Is this correct

2011-08-15 Thread Adam Zedan
templates is return render_to_response("db.html",{'content':list}) and now i am getting the exception Exception Value: Could not parse the remainder: '[0].roll_no' from 'content[0].roll_no' any ideas??? On Tue, Aug 16, 2011 at 4:58 AM, Landy Chapman <landy.chapm...@gmail.com>wrote: > >

Re: For loop problem in template..Is this correct

2011-08-15 Thread Adam Zedan
4:50 AM, Konstantin Sushenko <ako...@gmail.com > >wrote: > > > > > > > > > > > > > > > > > hello, > > > > > as a result of this you will have a series of 'data[i] = ...' > > > assignments in your output.

Re: Template html works when double clicked but empty when accessed through server

2011-08-15 Thread Adam Zedan
Its at the top most post.. have a look at http://groups.google.com/group/django-users/browse_thread/thread/8a509a916ae0023?hl=en On Aug 16, 6:11 am, Konstantin Sushenko <ako...@gmail.com> wrote: > what is the source code for the blank page? > > On Aug 15, 8:50 pm, Adam Zedan <

Re: Template html works when double clicked but empty when accessed through server

2011-08-15 Thread Adam Zedan
the url you're using when you get a blank page? http://127.0.0.1:8000/db/ urls.py url('^db/$', dbdemo), views.py def dbdemo(request): list= Student_Info.objects.all() #field=Student_Info._meta.get_all_field_names() return render_to_response("db.html",{'content':list}) On

Re: Template html works when double clicked but empty when accessed through server

2011-08-15 Thread Adam Zedan
Yes the title changes but my table does not appear. It only appear if i double click it ... :( On Tue, Aug 16, 2011 at 7:46 AM, Landy Chapman wrote: > When you get a blank page Does the title change? > Is debug mode on/off? > Is there an error message? > > > You could

Re: Template html works when double clicked but empty when accessed through server

2011-08-16 Thread Adam Zedan
okay going to error ansole of firefox here is what i got Error: Slick is not defined Source File: http://127.0.0.1:8000/db/ Line: 37 which is : grid = new Slick.Grid("#myGrid", data, columns, options); and the warnings are Security Error: Content at http://127.0.0.1:8000/db/ may not load or

Re: Template html works when double clicked but empty when accessed through server

2011-08-16 Thread Adam Zedan
project.com/en/1.3/howto/static-files/> > [2] > https://docs.djangoproject.**com/en/1.3/ref/contrib/**staticfiles/<https://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/> > > -- > > Jani Tiainen > > > On 08/16/2011 09:23 AM, Adam Zedan wrote: > >> okay going t

Re: Template html works when double clicked but empty when accessed through server

2011-08-16 Thread Adam Zedan
So what do u suggest ?? will that also solve the firefox security issue. currenty i am just using the following html code Demo On Aug 16, 11:58 am, Adam Zedan <zedan...@gmail.com> wrote: > Thanks.. that wh

Re: Template html works when double clicked but empty when accessed through server

2011-08-17 Thread Adam Zedan
Are ou saying that the reason i get nothing when running through a url is that because of security reasons (i.e) loading data from local machine ?? if so could you tell me how i could solve that problem ?? On Tue, Aug 16, 2011 at 4:43 PM, Konstantin Sushenko wrote: > you do not

Re: do we need MEDIA_ROOT and MEDIA_URL anymore?

2010-11-17 Thread Adam V.
On Nov 17, 2:07 am, MiratCanBayrak wrote: > Hi, > > I understood that in new version of django we are using > STATICFILES_ROOT and STATICFILES_URL instead OF MEDIA_ROOT and > MEDIA_URL. > > But when i look at settings.py i see both of them. When do we use > MEDIA? when

Re: mac No module named _md5 error

2010-11-18 Thread Adam V.
How did you install 2.6.6, and what does "which python" give you? -- 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

Re: I have an idea for a new tag

2010-11-19 Thread Adam Hallett
Just a thought, what about: {% for k,v in mydict|order:'key' %} or {% for k,v in mydict orderby key %} -Adam On Nov 19, 10:55 am, Paweł Roman <romapa...@googlemail.com> wrote: > When rendering dictionary, there is absolutely no way to display > values sorted by keys. The onl

Re: Django - Alternative to using NULLs? (for integer and FK fields).

2010-11-29 Thread Adam V.
A "phone number" is actually a character string, not an integer; so use CharField for these as well. For optional foreign keys, the standard (only?) database way to handle these is indeed with a NULL value. On Nov 29, 5:28 pm, Victor Hooi wrote: > Hi, > > I'm wondering what

Re: Base template doesnt get the context

2010-04-19 Thread Adam Patterson
What does the other template look like? Are you overridding the categories block? On Tue, Apr 20, 2010 at 5:17 AM, Thales wrote: > Good evening, > > I am learning django with the django book. I decided to develop a > simple news system just to practice, > The base layout

Re: Base template doesnt get the context

2010-04-20 Thread Adam Patterson
ld be receiving the context? Or do I > have to find another solution? I could put a include on the base > template to the other template, but it doesnt seem to me like an > elegant solution. > > On 19 abr, 23:46, Adam Patterson <fakeemp...@gmail.com> wrote: >> What does the

Existing sites using Django

2010-07-13 Thread Adam Auckland
. Many thanks, Adam Auckland -- 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-users+unsubscr...@googlegroups.com

Re: Project optimisation stage: Advice to boost speed of database queries across tables?

2009-12-30 Thread Adam Playford
. Adam On Dec 30, 1:46 am, Sam Walters <mr.sam...@gmail.com> wrote: > Hi > I have reached the optimisation stage of my project. > I am trying to work out how to reduce the turnaround time for my queries. > I implemented 'db_index=True'  for the fields where i determi

Re: no attribute 'save_m2m'

2010-01-18 Thread Adam Knight
t;> > this?http://stackoverflow.com/questions/1477319/how-to-get-the-django-curr... >> >> > Question 2: >> > Does the def save() in the model need alteration? Or addition of a def >> > save_m2m() ? Change gives a 'super' object has no attribute 'save_m2m' >> >> >

Can't explain this ImportError

2010-02-24 Thread Adam Yee
Just started using haystack. I've created an extended search form of SearchForm and have it located at /mysite/search/search_forms.py The import error happens in haystack.urls Traceback: File "/home/adam/stldata-djangosvn-2.6/lib/python2.6/site-packages/ django/core/handlers/ba

Re: verbose field names in admin

2010-03-01 Thread Adam Yee
When in doubt, always refer to the docs - http://docs.djangoproject.com/en/dev/ref/models/options/ There may be something small overlooked. You shouldn't have to re-sync the database to use verbose_name. It's just a hook to be used for example, in the model's meta options. Give us more detail

Re: verbose field names in admin

2010-03-03 Thread Adam Yee
. some example code of how you are actually doing this), and the more likely you are to get help. Adam On Mar 1, 4:12 pm, pixelcowboy <pixelcowbo...@gmail.com> wrote: > Im not trying to change the verbose name for the model class, but for > individual fields in the model, by the way.

Test cookie and CSRF middleware

2011-01-12 Thread Adam Endicott
I'm migrating a site from Django 1.1 to 1.2 and I can't figure out how set_test_cookie and test_cookie_worked is supposed to work when using the CSRF middleware. I do request.session.set_test_cookie() in my login view, then on POST, I want to check request.session.test_cookie_worked(), but I

Problems with permissions in the admin panel.

2011-02-23 Thread Adam Tonks
Hello, I'm having some fustrating problems with setting permissions for a user within the django administration panel. I create a new user, set it as staff, and assign it permissions. The problem is, when I login as them, I get the "You don't have permission to edit anything." error. I have

Re: Problems with permissions in the admin panel.

2011-02-24 Thread Adam Tonks
just override, but at least it's working now. Thanks On Feb 23, 11:50 pm, Mike Ramirez <gufym...@gmail.com> wrote: > On Wednesday, February 23, 2011 02:56:52 pm Adam Tonks wrote: > > > > > > > > > > > Hello, > > > I'm having some fustrating prob

Documentation error?

2011-03-14 Thread Adam Knight
ord argument "data" instead. Did I miss something or is this a bug I should file? (Yes, expecting the "data" keyword works perfectly, but it's not in the documentation that I can see.) -- Adam -- You received this message because you are subscribed to the Google Groups

Re: Django Web Application Cost So Many memory

2011-03-30 Thread Adam Nelson
I think 60M is fine. For us, with nginx in front of gunicorn, we can get many simultaneous connections per process. -Adam -- 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

Serve a tracking pixel via Django

2011-03-31 Thread Adam Nelson
We have one static file that needs to be served after business logic has run (i.e. log a view on a specific url based on a unique code). We used to use serve() in production. This has always been frowned upon but with Django 1.3, the errors are worse. Can one return an image in any other

Re: Serve a tracking pixel via Django

2011-04-01 Thread Adam Nelson
of the image. For us that would be a 30KB string. I have the sense that Linux optimizes away any cost of opening a static file repeatedly so I'm not so concerned about this. serve() is implicitly doing this and we're serving that file 100k+ times a day with minimal effort. #5 seems like the best

Odd problem with queryset

2011-04-03 Thread Adam Tonks
I have a function in a model to return the first post in a forum thread. At the moment, it looks like this: return Post.objects.filter(thread = self.pk).order_by('created') When I run it in my test forum, the code returns two posts: [, ] I then add a [0] to the end of the statement, to just

Re: Odd problem with queryset

2011-04-03 Thread Adam Tonks
At the suggestion of someone on IRC, I tried accessing the first result from within my template, using {{ thread.original_author.0 }} (where original_author is the name of the function with the return statement), and that works fine. It's a workaround, but not ideal, as I'll be using it in

Re: Odd problem with queryset

2011-04-04 Thread Adam Tonks
y. > If you know of a better way I can test it, I'd appreciate it, it will come in useful if something like this happens again. I've since gone another route to avoid having to use the function (this was bugging the hell out of me), but thanks for your help + suggestion. Adam > > -- You

Re: Which ajax framework django will support in the upcoming 1.0, prototype/dojo/jquery?

2007-04-10 Thread Adam Findley
done to create something in contrib to facilitate working with specific AJAX frameworks? Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: Need dedicated hosting for Django

2007-04-17 Thread Adam Fast
I'll second SliceHost if 100% dedicated isn't a requirement for you. On 4/17/07, Nicola Larosa <[EMAIL PROTECTED]> wrote: > > > Nik Kantar wrote: > > My company might be in need of a dedicated server, preferably managed, > > to use as a production server for Django (and non-Django) websites. > >

Re: Retrieving 'attributes' of a product for generic views

2007-05-09 Thread Adam Fast
e limitation to just rename the slugs, but is there any way it can work as is? Adam On 5/8/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > On 5/8/07, James Bennett <[EMAIL PROTECTED]> wrote: > > 2. If that doesn't work, try to access it as a normal Python attribute. >

Re: django vps hosting

2007-05-15 Thread Adam Fast
I've been pleased with SliceHost. On 5/15/07, urielka <[EMAIL PROTECTED]> wrote: > > > I am running two django sites with vpsland(good support) for the last > 7 days, but since i having problems with their ssh(running really > slow) i thinking about switching to other host. > > Is there any good

Re: Web Docs as a Single PDF Available

2007-05-24 Thread Adam Fast
and 1 if you want to build it manually. The "links" once appended "link" straight to the appropriate page in the PDF. Adam On 5/24/07, simonb <[EMAIL PROTECTED]> wrote: > > > If, like me, you're constantly referring to the docs on the web site > when developing,

Re: "Powered by Django" directory - Designer Wanted!

2007-06-14 Thread Adam Fast
I'm getting a list index out of range error here: http://www.djangosites.org/most-comments/ I'm looking forward to keeping an eye on this, and as I deploy more django sites, putting them up myself. Adam On 6/14/07, Kelvin Nicholson <[EMAIL PROTECTED]> wrote: > > > > > >

Re: Could you please share your django-based website source code with me?

2007-07-02 Thread Adam Fast
Jeff Croft's lost-theories.com site is also a good learning tool. http://www2.jeffcroft.com/blog/2007/may/28/lost-theoriescom-source-code-update/ On 7/2/07, nick feng <[EMAIL PROTECTED]> wrote: > > Hi All, > > I plan to build a django-based website for open-sourcing these days, I > have read

Re: Bulk data upload

2007-07-18 Thread Adam Fast
I won't attempt to tackle the image conundrum (because our old ecommerce site is of the single-image variety, which makes it easy). The other, though I can help you with. My models yield four tables (products, product_categories, product_site to tie it to a site, and product_attributes). I

Global Error Handeling and Strange Authentication issues

2006-12-04 Thread Adam Patt
We have two problems that are similar, but would like handled in two different ways. I have been using django for a few months modifying and adding to an existing app and have a pretty good feel for how most of the framework fits together, but some parts still baffle me, like error handling

Odd behavior using __range lookup

2006-12-08 Thread Adam Fast
Hi all, I'm building an e-commerce system and at the moment working on making the products easily searchable. But when I use a __range lookup, in some cases it returns a 404 as if there is no data that matches that criteria, and there is data that matches that criteria. Using the "Logging"

Re: Odd behavior using __range lookup

2006-12-08 Thread Adam Fast
'), to see if it could be a typing problem, but I'm still getting the same strange behavior. Can anyone help? Adam On 12/8/06, Chris Moffitt <[EMAIL PROTECTED]> wrote: > > > > I'm building an e-commerce system and at the moment working on making > the > > products easily

Get all *_set's from a model?

2006-12-11 Thread Adam Seering
s? Thanks, Adam --~--~-~--~~~---~--~~ 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 [EMAIL

Re: send_mass_mail() on save

2006-12-13 Thread Adam Fast
e() method customer_list = Subscriber.objects.filter(criteria) etc. I'm not personally familiar with the send_mass_mail ability but you'll be able to integrate it into the above. Adam On 12/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I have two models, Subscriber, which has a

Re: Get all *_set's from a model?

2006-12-18 Thread Adam Seering
Hey, Thanks!; that's exactly what I was looking for, Adam On 12/13/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > On 12/12/06, Adam Seering <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I know Django keeps track of connections

Re: how to make more rows appear in inline-tabular admin interface?

2006-12-27 Thread Adam Fast
on add than on edit. The documentation also lists more options http://www.djangoproject.com/documentation/model_api/#many-to-one-relationships(scroll down a bit to " ForeignKey fields take a number of extra arguments..." such as max_num_in_admin and min_num_in_admin. Adam On 12/27/06, B

Re: A basic problem with templates (I think)

2006-12-28 Thread Adam Seering
on, namely, that the characters that they represent don't normally work in an HTML file. Adam On Dec 28, 2006, at 9:18 AM, dutche wrote: I don't know why, but when I write or take from the Database a word with some kind of accent, Django shows a "?" instead. Why?? I've

Re: Django on REDHAT ES

2007-01-04 Thread Adam Seering
online; does installing them help? Adam --~--~-~--~~~---~--~~ 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

Re: Good Web development practice

2007-01-06 Thread Adam Seering
as to avoid that message, if you're going to a page that users may click "back" to get to. Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Creating an empty queryset

2007-01-10 Thread Adam Seering
I would strongly second that. This seems to have fallen somewhat dead, though. Any thoughts?; anyone in favor of it?; anyone know of any reasons not to do it? Adam On Dec 27, 2006, at 1:42 PM, Adrian Holovaty wrote: > > On 12/27/06, medhat <[EMAIL PROTECTED]> wrote: >&

Query: Follow foreignkeys?

2007-01-10 Thread Adam Seering
in a single query, instead of hitting the database once, applying a filter in Python, and then hitting it again? Thanks, Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: manipulating the value before save()

2007-01-14 Thread Adam Fast
I think you're looking for the save-and-delete hooks: http://www.djangoproject.com/documentation/models/save_delete_hooks/ They will allow you to make the changes before the object is saved without overriding django's own internal save functionality.

Re: django setting's problem

2007-01-14 Thread Adam Fast
By default django does not serve those files for you. MEDIA_ROOT is a value for where uploaded media is stored (and other media too) and MEDIA_URL is its peer, telling it where to link (over HTTP) for the files in MEDIA_ROOT. If you want the internal development server to serve the media files

User Session leakage

2007-01-17 Thread Adam Seering
jango chat widget, used over the course of a weekend by ~150 people; there were definitely concurrent sessions. This is getting really annoying. Anyone have any ideas on how to debug it? Thanks, Adam --~--~-~--~~~---~--~~ You received this message b

Re: User Session leakage

2007-01-17 Thread Adam Seering
their local repo's (based on 0.95), not directly from SVN. Out of curiosity, is there a way to determine the version of Django that a package uses, if it doesn't contain .svn files? Thanks, Adam On Jan 17, 2007, at 11:43 AM, James Bennett wrote: > > On 1/17/07, Jeremy Dunck <[EMAIL

Re: User Session leakage

2007-01-17 Thread Adam Seering
use Django for this particular project; do folks have any thoughts/answers for them? Thanks, Adam On Jan 17, 2007, at 4:51 PM, Jeremy Dunck wrote: On 1/17/07, Adam Seering <[EMAIL PROTECTED]> wrote: Out of curiosity, is there a way to determine the version of Django that a package uses, if it

Re: User Session leakage

2007-01-18 Thread Adam Seering
not, we're not sure what we will do; in terms of evaluating frameworks as we go, Django has just dropped a rather large notch in our view of things. Thanks, Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &quo

Re: User Session leakage

2007-01-18 Thread Adam Seering
On Jan 18, 2007, at 9:35 AM, Jeremy Dunck wrote: On 1/17/07, Adam Seering <[EMAIL PROTECTED]> wrote: ... We're not eager to use the SVN HEAD version of source on our main servers. The Django API-change docs are good, but not that good; we have had code break unexpectedly in the past

Re: Cookies on mobile phones NOT to expire at browser close

2007-01-24 Thread Adam Fast
I'm not using cookies for mobiles in any of my apps yet, but I have a Cingular 8125 and would be willing to help test it out. Adam On 1/24/07, Michael Radziej <[EMAIL PROTECTED]> wrote: > > > Hi, > > for evaluating this ticket, it would be important to get into > co

Re: Sites crashing after moving to 4431

2007-01-26 Thread Adam Fast
I was having the same problem, rolling back to 4429 fixed it for me. svn update -r 4429 (IIRC, that was last night) Adam On 1/26/07, Ramdas S <[EMAIL PROTECTED]> wrote: > > I moved my Django SVN version on my PC to 4431 about 20 minutes back. > Following this all my Django web ap

Database introspection dies?

2007-02-28 Thread Adam Seering
MacOS X, with Django from svn head, and dependencies from Fink. Thanks, Adam adam$ ./manage.py inspectdb # This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with pri

User model extension

2007-03-06 Thread Adam Rutkowski
odel in one's app should be extended with some attributes (and/or) behaviour. I suppose I should use the existing model, somehow inherit from it or reuse it. How is this usually handled in the django-way? Take care -- Adam --~--~-~--~~~---~--~~ You rece

Re: Another Django CMS customization question

2007-04-04 Thread Adam Fast
Josh, My first question would be if you've checked into flatpages yet. If I'm reading what you're asking, it solves the problem almost entirely. And, it's quite simple and you can use it to build more structure on if you need more features than it offers.

PostgreSQL Backup and Restore

2006-07-08 Thread Adam Blinkinsop
Geert Vanderkelen wrote: > Don Arbow wrote: > > On Jul 7, 2006, at 3:35 AM, Kenneth Gonsalves wrote: > >> another thing, your have to be careful about postgresql is that data > >> recovery tools for a borked db for postgres are rare to the point of > >> non-existence, whereas there are lots of

recursive FilePathField - list file paths

2006-07-19 Thread Adam Seering
? It's a feature that I need; I'd guess that others might need it, too? Adam --~--~-~--~~~---~--~~ 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: Full Text Search w/ MySQL

2006-08-02 Thread Adam Endicott
Nice work John, good stuff. Do any of the core devs see this as a candidate for inclusion in contrib? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Work with FileField directly

2006-08-06 Thread Adam Seering
that makes a unique filename (currently by adding "_", I believe) available, or do I have to write that myself as well? Thanks, Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: compare integers in template (newbie question)

2006-08-16 Thread Adam Endicott
[EMAIL PROTECTED] wrote: > I'd really love to be able to do something like this: > {% if videoObject.rating > 0 %}*{% endif %} > {% if videoObject.rating > 1 %}*{% endif %} > {% if videoObject.rating > 2 %}*{% endif %} If this type of code is your goal, you could do something like: {% ifequal

Programtically changing templates the "Django way"

2006-09-06 Thread Adam Mikeal
I need some help with how to approach a particular problem. I am new to Django (but not to web application development), and while I can think of several ways to solve this problem, I wanted to get some input from the Django community as to the "correct", or most "Django" way to solve it. Here's

Re: Programtically changing templates the "Django way"

2006-09-06 Thread Adam Mikeal
Jeremy Dunck wrote: > It sounds like you want your template name to be a field on the > conference model. Exactly. This was my first thought. However, here's the problem: the templates currently extend a base template to add in the forms and data for the registration stuff into a main content

Re:

2006-09-11 Thread Adam Kelly
%} {% endfor %} Adam. On 11 Sep 2006 20:59:23 -, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have a table, as follows: > > > > class Thing(models.Model): > > name > = models.CharField(maxlength=100) > > col

RE: OS X install problem: No module named django.core.management

2006-09-14 Thread Fast, Adam
Thank you, that was the solution. site-packages/ was in the path, but I added site-packages/django and now everything's working great. Adam -Original Message- From: django-users@googlegroups.com on behalf of James Bennett Sent: Thu 9/14/2006 12:45 AM To: django-users@googlegroups.com

Re: variable multiple filter question

2006-09-20 Thread Adam Endicott
You don't have to write all the filter statements at once, you can add them incrementally. I usually do this kind of thing like: var1 = request.GET.get('var1', None) var2 = request.GET.get('var2', None) var3 = request.GET.get('var3', None) object_list = MyModel.objects.all() if var1:

Handling phone extensions?

2006-10-03 Thread Fast, Adam
I’m working on an app and need a Phone number/extension.  I’m using a PhoneNumberField(), but was curious if there was a way to make an extension field appear to the side.  Is that part of the definition or is there an easy way to get this accomplished?   Adam

Re: long-running process. how to do it?

2006-10-06 Thread Adam Blinkinsop
Couldn't you just fork a process (os.spawn*)? My vote is for an email queue -- analogous to a print queue. Do the entire producer/consumer thing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Custom manager filter by logged in user.

2006-06-17 Thread Adam Hoscilo
that by custom managers or maybe some other nice way? PS django.pl coming soon :) -- Regards Adam Hoscilo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Custom manager filter by logged in user.

2006-06-17 Thread Adam Hoscilo
You're right - my fault. It just isn't the way I would like to handle this problem. But I've forgotten about middleware and I think this will be the best way to solve this _issue_ without breaking MVC(MVT) schema (just check if the requested object was created by user).

Re: Custom manager filter by logged in user.

2006-06-17 Thread Adam Hoscilo
Not that way anymore. I will just check (in the middleware) if the requested entry's author is the logged in user (for edit action) if not throw exception. -- Adam Hoscilo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Template: nested for and ManyToMany field problem - MySQL

2006-06-18 Thread Adam Hoscilo
remove the nested for everything works fine. I tried to fetch entries with .select_related() and without - no difference. Database backend is MySQL 5 Anyone had a problem like this one? -- Adam Hoscilo --~--~-~--~~~---~--~~ You received this message because you

Re: Template: nested for and ManyToMany field problem - MySQL

2006-06-19 Thread Adam Hoscilo
> Then you want entry.categories.all in your template. That was the problem. Thanks. -- Adam Hoscilo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Filtering a QuerySet by the result of user.has_perm

2015-03-10 Thread Adam Gamble
ssions. Appreciate any ideas, Adam -- 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. To post to this group, send

Trouble with STATIC_URL in v1.5.2

2013-09-16 Thread Adam Stein
why this might be happening or what to look at? Everything that needs to be set for STATIC_URL is set, otherwise it wouldn't have worked in v1.4.x in the first place. -- Adam (a...@csh.rit.edu) -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: Trouble with STATIC_URL in v1.5.2

2013-09-17 Thread Adam Stein
t; 'django.core.context_processors.debug', > 'django.core.context_processors.i18n', > 'django.core.context_processors.media', > 'django.core.context_processors.static', > 'django.core.context_processors.tz', > 'django.contrib.messages.context_processors.messages') > &g

Re: Trouble with STATIC_URL in v1.5.2

2013-09-17 Thread Adam Stein
ext_processors you can see that the > STATIC_URL is placed in the RequestContext unconditionally on line 65: > > > https://github.com/django/django/blob/stable/1.5.x/django/core/context_processors.py > > > > K > > > > > > On Tuesday, September

Re: Psycopg2 on Mac OS X (Snow Leopard)

2013-10-28 Thread Adam Portier
Good afternoon, I just had this exact same problem and it took me a while to find the solution. On OSx there is a separate library path variable for .dylib library files. I added the following to my .bashrc (or.bash_env or however you set up your shell environment). export

Looking for a full time Django/Python job (Rochester, NY area OR remote)

2014-01-06 Thread Adam Stein
tart) to allow the human to go first. All other projects were created by someone else, but I added functionality that I needed for home Django projects. You can contact me at 'a...@csh.rit.edu' or through my LinkedIn profile. -- Adam Stein (a...@csh.rit.edu) -- You received this mess

Re: SITE_ID

2014-02-05 Thread Adam Hurwitz
', 'django.contrib.staticfiles', 'django.contrib.admin', 'blog', Is there anywhere else code needs to be implemented for the site_ID? Thanks, Adam On Saturday, September 25, 2010 9:32:17 AM UTC-7, Tim Sawyer wrote: > > On 25/09/10 15:57, craphunter wrote: > > Yes, I have read it, but I don't really

looking for recommendations for django app for managing tv commercial post production

2014-02-20 Thread Adam Teale
oughts anyone might have. Cheers! Adam -- 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. To post to this g

Django 1.8 migrate - relation “django_content_type” already exists

2015-06-16 Thread Adam Teale
Hi Guys, Any idea why I would be getting this error when I try to migrate? django.db.utils.ProgrammingError: relation "django_content_type" I am using using django 1.8 & postgresql Thanks! Adam -- You received this message because you are subscribed to the Google Groups

<    1   2   3   4   5   6   >