Connection error with ado_mssql

2007-01-23 Thread Andrew Diederich
Password=thePassword;') Do I need a DSN to make the connection? [Time passes] Ok, figured it out. Since I've already put in the text, I'll write up the answer so google gets smarter. My db is on a non-standard port, and that isn't picked up correctly in base.py yet. So,

inspectdb support for ado_mssql?

2007-01-23 Thread Andrew Diederich
ted database backend. introspection.py for ado_mssql has NotImplementedError in all the classes, so I may be just out of luck on this one. -- Andrew Diederich --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re[2]: inspectdb support for ado_mssql?

2007-01-24 Thread Andrew Diederich
ay. I was able to do inspectdb. Thanks for the help. -- Best regards, Andrew Diederich --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Tools for writing HTML templates

2007-01-27 Thread Andrew Diederich
here have enjoyed using for making hte HTML and CSS needed to make a good looking django site? Nvu? Homesite? -- Andrew Diederich --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Tools for writing HTML templates

2007-01-28 Thread Andrew Diederich
nux and solaris servers. Have you run into anything your windows friends like? Another category of user I'm looking for is me. Decidedly non-graphical, not a python wunderkind, just looking for something to lay out simple pages for testing, developing django

Re: New Vim files for Django

2007-01-31 Thread Andrew Diederich
g, and that one is the latest? -- Andrew Diederich --~--~-~--~~~---~--~~ 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

Using __str__ with DateField

2007-02-10 Thread Andrew Diederich
dmin: pass Is there an easy way to munge the return self.end_date into a string? Thanks for the help. -- Andrew Diederich --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Using __str__ with DateField

2007-02-10 Thread Andrew Diederich
On 2/10/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 2/10/07, Andrew Diederich <[EMAIL PROTECTED]> wrote: > > Is there an easy way to munge the return self.end_date into a string? > > This is a Python requirement -- __str__() methods must return a >

Re: One-to-one not to be used?

2006-05-12 Thread Andrew Badstubner
> "The semantics of one-to-one relationships will be changing soon, so we > don't recommend you use them. If that doesn't scare you away, keep > reading." > > It scares me a bit. Can anyone expand on the "changing semantics" or > point me to an existing discussion? +1 I need to use this, and woul

Strange problems in 0.91

2006-06-11 Thread Andrew Degtiariov
pub_date__gte=datetime(2005, 1, 1)) translated to a single SQL query with WHERE clause? E.g. to something like SELECT * FROM table_name WHERE headline LIKE 'What%' AND NOT pud_date >= '2006-06-11 19:08:17' AND pub_date >= '2005-01-01 00:00:00'. Or a

Problem with templatetags and template inheritance

2006-06-15 Thread Andrew Gwozdziewycz
urn '' def do_get_content_section(parser, token): return ContentSectionNode() register.tag('get_content_section', do_get_content_section) // {% load content_utility %} {% get_content_section %} Anybody have any ideas as to what might

Re: Problem with templatetags and template inheritance

2006-06-15 Thread Andrew Gwozdziewycz
I found a way to work around this, but it's still bugging me that it doesn't work this way. On Jun 16, 2006, at 12:48 AM, Andrew Gwozdziewycz wrote: > I'm trying to build a system, which uses generic views, inherited > templates and template tags. > > Th

Re: Full Text Search w/ MySQL

2006-08-03 Thread Andrew Durdin
thing more suited for general searching. Andrew --~--~-~--~~~---~--~~ 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 gro

Rows in admin TextFields

2006-08-31 Thread Andrew Stoneman
nk. Is there a reasonable solution to this, or am I going to have to list id's up to 100 or something and hope that's enough? Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Bug in MultiValueDict?

2006-02-10 Thread Andrew Degtiariov
x27;costs'. Don't know is it fixed or not, if yes, could you give me patch or solution for Django 0.91 how I can obtain list instead of string? (for some reasons can't use code from repository). -- Andrew DegtiariovDA-RIPE >> To: --~--~-~--~~~---~-

Re: Bug in MultiValueDict?

2006-02-11 Thread Andrew Degtiariov
Hi Andrew,This isn't a bug -- it's intended behavior. When you access an element in a MultiValueDict, it returns the last item, as a string. See thedocs for more info:http://www.djangoproject.com/documentation/request_response/#querydict-objects If you want to get a list instead o

comments broken in magic-removal?

2006-02-18 Thread Andrew Gwozdziewycz
omment }} 28 29 30 Or did i do something wrong? --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org http://and.rovir.us --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Comments broken in magic-removal?

2006-02-20 Thread Andrew Gwozdziewycz
rying to get comments for a particular Topic. Any suggestions? --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org http://and.rovir.us --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Multi-page forms

2006-02-24 Thread Andrew Gwozdziewycz
whatever)" table anyway. Just put it in the survey table as it comes in. But the point is that your only overhead is having an extra column, rather than multiple unnecessary inserts to the database. --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org http://and.rovir.us -

Re: Different users with access to different fields

2006-02-26 Thread Andrew Gwozdziewycz
m which would let you conditionally output different views based on permissions. --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org http://and.rovir.us --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Examples of using InlineObjectCollection?

2006-03-21 Thread Andrew Degtiariov
simular sets of fields. Or maybe I am on a wrong way? Any suggestions would be helpfull. -- Andrew Degtiariov DA-RIPE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

OperationalError at /admin/login database or disk is full

2022-05-27 Thread Andrew Rea
atabase or disk is full Is this because my SQLite database is full from other projects? Or possibly because I have too many virtual envs from those same other projects? *Or* is it due to my personal computer's disk being too full? Thank you in advance, Andrew S. Rea -- You received this mess

Re: i am facing problem with my project to update data in mysql using django

2022-06-20 Thread andrew snyder
can you conform that database user has permissions to update data in all three databases using a mysql client? On Thursday, June 16, 2022 at 12:02:00 PM UTC-4 rafiurra...@gmail.com wrote: > here is my problem description link in stackoverflow > if anyone can help me, i will be gratefull > > lin

missing field after makemigrations

2022-06-20 Thread andrew snyder
There is something in my models.py that breaks makemigrations. The field "rank" is missing from "CharacterSkill". Also, if I uncomment any of the three classes that refer to "Character" the "game" and "player" fields become separate items in the migrations file. -- You received this message b

Re: missing field after makemigrations

2022-06-20 Thread andrew snyder
Thanks, that did the trick. Should I make a feature request that django throw an error whenever a field type has no real type? >>> type(models.SmallIntegerField()) >>> type(models.SmallIntegerField) On Monday, June 20, 2022 at 10:53:37 AM UTC-4 moheb@gmail.com wrote: > Hi, > The reason w

how to initialize input form fields using URL parameters

2023-01-22 Thread Andrew Brown
I am trying to pass initial values to my form set via URL Query ex) Localhost:8000?/First_name_id_0=Samuel [image: forms.py.png] I was told to use the initial parameter and not the instance in my view first "An inline formset is related to one instance of the parent model. You identify *which*

Re: Django Admin

2023-03-13 Thread Andrew Romany
It's very simple you should add it in the login/register html page but inside the tag after & to be specific after this above line. On Mon, 13 Mar 2023, 11:15 a.m. James Hunt, wrote: > I have yet to create a HTML page so I'm not sure that the inclusion of {% > csrf_token %} is required. I mean

Re: Add single object(most recent) from foreign key relationship to django queryset

2023-05-13 Thread Andrew Kos
Could you do a separate query or use select_related() to retrieve the most recent comment then combine the two in your table building logic? You're going to be constrained by the structure of the models anyways and so will probably have to make a couple queries to the DB. On Friday, May 12, 202

Looking to help recruiters and job candidates

2023-06-26 Thread Andrew Wang
Hey Djangonaughts! I'm looking to build a tool for recruiters to get candidates interviews faster by streamlining recruiters' processes. Would greatly appreciate any connects. Also, if you're looking for a software engineering role (with at least 1 prior company experience for validation), woul

Re: Seeking Django Unpaid Internship Opportunity in the USA

2023-06-26 Thread Andrew Wang
Happy to chat: and...@lazify.ai On Wednesday, June 21, 2023 at 4:16:58 PM UTC-4 Karthik wrote: > Hello > > I hope this email finds you well. My name is Karthik Hosur, and I am > writing to express my interest in securing an unpaid internship opportunity > in Django development. I have been an

Re: Django deployment practices -- do people use setup.py?

2012-03-14 Thread Andrew Cutler
it first. And where do we put local settings? Can we have setup.py create a local project directory, with any local configs, user template overrides. etc? I'm hoping someone has already done this before and can advise on what works and what doesn't... Cheers, Andrew -- You receiv

Re: Django deployment practices -- do people use setup.py?

2012-04-18 Thread Andrew Cutler
On 15 March 2012 12:33, Andrew Cutler wrote: > > We also want to be able to distribute a self contained Django project > with sane defaults (and this is where it gets tricky). > Answering my own question here... But I've finally achieved the "holy grail" of Djan

Re: Django deployment practices -- do people use setup.py?

2012-04-20 Thread Andrew Cutler
nually using the Debian package management. > Do you mean install requirements for system libraries, databases. That sort of thing? Or do you mean non python files, like scripts, documentation ? Cheers, Andrew -- You received this message because you are subscribed to the Google Groups "

Re: Django deployment practices -- do people use setup.py?

2012-04-24 Thread Andrew Cutler
admin to plumb everything together. Perhaps later on I'll roll some generic Debs and RPMS that satisfy the required dependencies, but for now we assume our end users are technically proficient, so we can get away with a less integrated approach. Cheers, -- Andrew Cutler -- You received this me

Re: Django deployment practices -- do people use setup.py?

2012-04-26 Thread Andrew Cutler
pproach, as I don't have any experience with binary only packaging (all our distributed code is open source). But these at least should give you a starting point for your own investigation. Regards, -- Andrew Cutler -- You received this message because you are subscribed to the Google Groups &quo

Re: RedirectView with query_string = True and urlencoded unicode string

2012-05-14 Thread Andrew Bruce
You have passed 'anything' as a keyword argument that will get passed into your view. Unfortunately, you can't access it in your inline constructor call. Try subclassing RedirectView in views.py of your app. class SubRedirectView(RedirectView): query_string = True def get_redirect_url(se

How I use Django, Virtualenv and Buildout together

2012-06-14 Thread Andrew Bialecki
Hey everyone, I wrote a quick blog post on how I use Django with virtualenv and Buildout. Hope it's helpful: http://www.sophomoredev.com/2012/06/how-i-use-django-virtualenv-and-buildout-together/. -- You received this message because you are subscribed to the Google Groups "Django users" grou

Django Developer, Washington, D.C.

2012-07-03 Thread Andrew Moore
Hello group. National Geographic is seeking Django developers, for permanent full-time positions at their Washington, D.C. headquarters. If I can share more details, please let me know. propensitygr...@gmail.com or and...@themidtowngroup.com. Thanks! -- You received this message because you

Washington, D.C.

2012-07-24 Thread Andrew Moore
Seeking a senior Django developer with 5 years experience to develop applications for a world famous media company (think a century of incredible photographs and stories in its signature monthly magazine) in Washington, D.C. Job is permanent, with full benefits. Compensation would be approximat

REMOVE ME

2012-07-28 Thread Andrew Miller
On Sun, Jul 29, 2012 at 10:43 AM, forthfan wrote: > Hi all, > > Being lazy, I want Django to validate the stuff I read from an uploaded > file as if it were being posted. Is there a nice way to do this? > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: Setting an unusable password on an existing user

2012-09-21 Thread Andrew Macgregor
AFAIK you can set it to ! in the admin interface. Don't use the change password form, just enter ! into the password field on the Auth User table. I believe this will cause has_usable_password() to return False. Cheers, Andrew. On Friday, September 21, 2012 2:16:22 PM UTC+8, nav wrote: &

Re: Easiest way to access MySQL from Django on Mac OS X?...

2012-09-23 Thread Andrew Macgregor
Hi Fred, I've also found HomeBrew to be useful. Here's a good setup guide: http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/ Cheers, Andrew. On Monday, September 24, 2012 2:02:37 AM UTC+8, Fred Stluka wrote: > > Resolve

Re: Abridged summary of django-users@googlegroups.com - 31 Messages in 11 Topics

2012-10-13 Thread Andrew McClain
On Oct 13, 2012, at 6:58 AM, django-users@googlegroups.com wrote: > Today's Topic Summary > Group: http://groups.google.com/group/django-users/topics > > A fun little Django project [Robert Steckroth] [1 Update] > User can't edit model even after permissions are issued [1 Update] > User can't

Re: Django in Eclipse+PyDev, lot's of functions and imports are undefined/unresolved

2012-10-26 Thread Andrew McHarg
Have you verified that the python interpreter pydev is looking at has django installed in it? That might account for it. Also try doing a Project > Clean. That being said I have found that pydev's code analysis can be pretty janky under a variety circumstances such as switching branches outside the

Re: Django/South/MySQL bug

2012-10-31 Thread Andrew Godwin
t attribute already? Have you tried working out why that's not happening? Andrew On Wed, Oct 31, 2012 at 2:19 PM, Tom Evans wrote: > Hi all > > I've just run into a slight problem with Django 1.4.1, south 0.7.6 and > py-MySQLdb 1.2.3. > > In the fix for Djang

Suse Linux installation

2011-10-14 Thread Andrew Johnson
I download and untar Django-1.3.1 and try to install and get: django/Django-1.3.1> sudo python setup.py install Traceback (most recent call last): File "setup.py", line 1, in ? from distutils.core import setup ImportError: No module named distutils.core I don't see a file named distutils.co

Re: Suse Linux installation

2011-10-17 Thread Andrew Johnson
ute or python-setuptools to build it > (you can just install one of them with 'zypper in python-...' or > download from the same[1] repo). > > [1]:http://download.opensuse.org/repositories/devel:/languages:/python/ > > On Fri, Oct 14, 2011 at 1:54 PM, Andrew Johnson &g

Re: Suse Linux installation

2011-10-17 Thread Andrew Johnson
how to usage it here[1]. > Choose the correct folder from the openSUSE version you are using. > > [1]:http://en.opensuse.org/SDB:Zypper_usage > > On Mon, Oct 17, 2011 at 4:37 PM, Andrew Johnson > > wrote: > > Thanks for the response! > > > Where can I get more gui

lowercase alphanumeric usernames

2011-10-27 Thread Andrew Marder
dmin' and another with username 'Admin'. So, I'll open this up to the Django pros, any suggestions on how to enforce that all my users have lowercase alphanumeric usernames? Thanks, Andrew -- You received this message because you are subscribed to the Google Groups "D

Postgres pgadmin3 & pgpass permissioning question

2012-11-25 Thread Andrew Taylor
Hi all, Tenuous Django link but thought no one would mind if I asked the following: Can I bypass the need for password entry in pgadmin3 by changing/locating a .pgpass files instead of modifying pg_hba.conf to 'trust'? pg_hba.conf currently set at md5 for everything. 1. I can merrily connect t

Admin UI Improvements for Ordered List Using Through Inline?

2012-12-01 Thread Andrew Brown
n UI for this case that I could reuse I would really appreciate a pointer in the right direction. Alternatively, guidance on how to improve this myself would also be very helpful. Thanks! Andrew -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Limiting the entry that loaded in django admin.

2012-12-03 Thread Andrew Macgregor
images that should be loaded? > > Any advice? > Try using raw_id_fields: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.raw_id_fields Cheers, Andrew. -- You received this message because you are subscribed to the Google Groups "

Re: Multiple stackinline all sharing relation need assistance

2012-12-06 Thread Andrew Macgregor
/#django.contrib.admin.ModelAdmin.queryset - Andrew. On Thursday, December 6, 2012 2:50:43 PM UTC+8, Detectedstealth wrote: > > See the attachment. > > The dropdown is showing a work experience that was added by a different > user. The dropdown should only show work experience that was entered

What's the right pattern to re-use common view code?

2013-01-22 Thread andrew jackson
google-fu is weak. Do I write a custom template tag that takes a queryset as a parameter? Aren't custom template tags to be avoided? Thanks much for your time, Andrew -- You received this message because you are subscribed to the Google Groups "Django users" group. To view

Re: What's the right pattern to re-use common view code?

2013-01-22 Thread andrew jackson
...I can't believe i missed that as a builtin. Sorry! Thank you very much! -andrew On Tuesday, January 22, 2013 12:01:52 PM UTC-8, Nikolas Stevenson-Molnar wrote: > > Django does {% include %} too :) > https://docs.djangoproject.com/en/1.4/ref/templates/builtins/#include &g

Django install error using Python26

2013-01-26 Thread Andrew Palmer
Hey All, So I'm new to Python/Django, trying to use this more after being a Perl user for quite some time. I'm going through the djangobook.com tutorial for starters. I have Python 2.6.6 installed, as well as Django 1.4.3. Hasn't been an issue running any Python scripts, however when I navigate

Re: Django install error using Python26

2013-01-26 Thread Andrew Palmer
Karen, Wow I feel like an idiot... I'm so used to tabbing everything out that I was tabbing the 'INSTALL' located in the django directory... I bet I would have been staring at that all night, THANKS! Andy On Saturday, January 26, 2013 9:55:28 PM UTC-6, Andrew Palmer wrote: >

Re: Django install error using Python26

2013-01-26 Thread Andrew Palmer
Karen, Wow I feel like an idiot... I'm so used to tabbing everything out that I was tabbing the 'INSTALL' located in the django directory... I bet I would have been staring at that all night, THANKS! Andy -- You received this message because you are subscribed to the Google Groups "Django us

DATABASES is improperly configured. Please supply the ENGINE value - 2 databases

2013-03-18 Thread Andrew Taylor
Hi, I'm trying to get django to play with a pre-existing database "dbtransitcross". It was working until I attempted to add this second database. Any suggestions what to look at would be appreciated. Thanks, Andy PS project structure is: -Stringer/ manage.py Stringer/

Re: check genre and insert

2013-04-26 Thread Andrew Boltachev
Hi. May be you need if not line["IdGenre"] in genres: instead? On Friday, April 26, 2013 9:04:42 PM UTC+4, Hélio Miranda wrote: > > I am having a problem which is as follows: > I have to insert a csv file of movies in bd, but I can not enter the name > of the genre of the film directly. I hav

Re: Django Admin - BooleanField issue

2013-04-27 Thread Andrew Boltachev
Hi. May be you need active = models.BooleanField(choices=((True,'yes'),(False,'no'))) ? - With regards, Andrei 2013/4/27 Marc R > I've setup a boolean field and get it to display correctly using this in > my model: > active = models.BooleanField(choices=((1,'yes'),(0,'no'))) > > However, whe

Re: Upload csv with utf-8

2013-04-29 Thread Andrew Boltachev
Hi! Check this out https://gist.github.com/eightysteele/1174811 In short, value.decode('utf-8') must be used to prepare value, that was read from file, encoded with utf-8 for processing. 2013/4/29 Hélio Miranda > I have a problem that is to read the csv file that contain words with > accents.

Re: Upload csv with utf-8

2013-04-29 Thread Andrew Boltachev
And if you get an error, can you post complete traceback? 2013/4/29 Hélio Miranda > continued without realizing how in my code I can do this ... > > The error I get is this > strings in documents must be valid UTF-8 > > -- > You received this message because you are subscribed to the Google Gro

Re: noob "hello world" problem with URLconf

2013-04-30 Thread Andrew Boltachev
Hi. Can you please post your full urls.py? 2013/4/30 > what´s up everyone. I just installed Django for the first time, leaving > php in the closet for a while. > > My problem is concerning the url patterns. I´ve pasted the example "Hello > world" code directly from the django book to urls.py an

help regarding celery implementation with django

2013-05-14 Thread Andrew Stewart
Hi Group, I want to do some stuff with redis for my django application, the backend is majorly PostgreSQL. I have a detailed question here - http://stackoverflow.com/questions/16537490/connecting-my-django-app-to-the-redis-installation Help would be appreciated, thanks! -- You received this mes

creating a realtime push notification service as in facebook and stackoverflow using redis

2013-06-04 Thread Andrew Stewart
Hi Group, I am interested in replicating the notification as in facebook if something happens, or as happens in stackoverflow, when you see the red colored bubble. I understand that the redis pub-sub can be used. I do not want to use the Server Side Events. Could someone please guide me how

Registering Signal Receivers When Running Tests

2013-06-13 Thread Andrew Brown
ls.py and are imported in models.py for registration purposes. Thanks! Andrew -- 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..

selected admin actions for a user, who is owner of one of the tenants in a multi tenant django crm app

2013-06-18 Thread Andrew Stewart
Hi Group, could someone please help me with - http://stackoverflow.com/questions/17184386/providing-admin-actions-to-group-members-in-a-multi-tenant-django-crm-applicatio Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Problem with chaining filters

2013-07-22 Thread Andrew Simpson
Perhaps something like this would give you what you need: Pronunciation.objects.filter(word__translation='') -- 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 djan

could someone please help me with the following SO doubt on creating a db migration with south - http://stackoverflow.com/questions/18320225/migrating-an-existing-app-via-south Thansks!

2013-08-19 Thread Andrew Stewart
-- 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 email to django-users@googlegroups.com. V

could someone please help me with - http://stackoverflow.com/questions/18204733/django-taggit-prevent-overlapping-tags-across-different-models Thanks!

2013-08-22 Thread Andrew Stewart
-- 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 email to django-users@googlegroups.com. V

Re: How to Sign In as a admin or Staff in Django Site?

2013-10-08 Thread Andrew Farrell
Hi Mamarth, Follow the directions under "Overview" here: https://docs.djangoproject.com/en/1.6/ref/contrib/admin/, found by googling "django admin site" Create a staff account with the command `manage.py createsuperuser`, and then go to yoursite.com/admin/ (or localhost:8000/admin/) to sign in

How to handle values_list?

2013-10-17 Thread Andrew Michael
Hi, I am new to Django and need some help. My issue is on my web page the data is showing up like this: [u'Green'] and I want it to only show Green - without the unicode wrapping. Can you please explain why this is happening and how do I fix it? Here is my code. *models.py:* Class Name(mo

Re: How to handle values_list?

2013-10-17 Thread Andrew Michael
Unfortunately, that did not work. When I put that in the template I get nothing for name, not even [u'Green']. Any other thoughts? On Thursday, October 17, 2013 4:19:57 PM UTC-4, ke1g wrote: > > Try: > > {{ name.0.name }} > > > On Thu, Oct 17, 2013 at 2:30 P

Re: How to handle values_list?

2013-10-18 Thread Andrew Michael
I have the same code: {{ name|safe }} And now Green shows on my web page instead of [u'Green']! On Fri, Oct 18, 2013 at 2:39 AM, Leonardo Giordani < giordani.leona...@gmail.com> wrote: > Andrew, I think that the view is missing something: > > > def

Re: django debugger

2013-11-07 Thread Andrew Farrell
It is possible to use pdb (or ipdb: https://pypi.python.org/pypi/ipdb) by inserting a set_trace() call and then running the django dev server with `manage.py runserver`. For example, the following will print the number of database queries before and then after a function which touches the datab

Why is RequestContext used in this way?

2013-11-15 Thread Andrew Taylor
Hi, I've followed some example code which is is follows: def index(request): context = RequestContext(request) context_dict = {'boldmessage': "I am from the context"} return render_to_response('rango/index.html',context_dict, context) Here RequestContext only has the first argument

how to call user-defined database functions through the Django query syntax?

2011-04-20 Thread Andrew Dalke
s smartsmatch(object): def __init__(self, smarts): self.smarts = smarts def as_sql(self, column): return ("oe_matches(%s, %s)", (column, smarts)) I looked but found nothing in the documentation or on the way for how to access user-defined function in Django except throug

Re: how to call user-defined database functions through the Django query syntax?

2011-04-20 Thread Andrew Dalke
ne of those. I learned the syntax by seeing what Django does for that case. This means my extra() call would need to know the alias Django uses for making the call, and that's not available programmatically. I could hard code it to "T6" or whatever, but that's very much a hack. (

Re: how to call user-defined database functions through the Django query syntax?

2011-04-20 Thread Andrew Dalke
after I go to conferences (ICCE and EuroPython) in June, then it might be something I'll be able to work on, and perhaps even get funding to work on. So yes, I'm interested (though I would implement a comparable OEChem back-end), but no, it's not going to be in the next few months

Re: Connecting to a database

2011-04-24 Thread Andrew Volozhanin
yes, SQLite doesn't use any SQL server. It consists of a database file. That's why you access sqlite databases by the filename. But mySQL, postgresql use such servers. And you access them by connecting to these servers. -- You received this message because you are subscribed to the Google Group

django-profiles and get_absolute_url

2011-05-31 Thread Andrew Sledge
Hi All, I am having trouble getting an absolute URL using the django-profiles module with usernames that have periods in them (for instance "/ profiles/user.1"). Here is my profile class: class UserProfile(models.Model): user = models.ForeignKey(User, unique=True) web_site = models.URLField(

Re: django-profiles and get_absolute_url

2011-05-31 Thread Andrew Sledge
rofiles_profile_detail? > > Matías > > Excerpts from Andrew Sledge's message of Tue May 31 17:37:20 -0300 2011: > > > > > > > > > Hi All, > > > I am having trouble getting an absolute URL using the django-profiles > > module with usernames tha

Re: django-profiles and get_absolute_url

2011-05-31 Thread Andrew Sledge
So, basically, django-profiles doesn't support usernames with dots characters, > you might need to override such URL. > >     url(r'^profiles/(?P[\w\.]+)/$', views.profile_details, >         name='profiles_profile_detail'), >     url(r'^profiles/',

Re: django-profiles and get_absolute_url

2011-06-01 Thread Andrew Sledge
Patch was submitted here: https://bitbucket.org/ubernostrum/django-profiles/issue/10/user-names-cant-have-periods-etc#comment-502428 On May 31, 5:17 pm, Andrew Sledge wrote: > Thank you Matias. > > Your syntax was a little off, but you did solve it. Here is the > correct syntax

Test runner fails with Django 1.2.1 and psycopg2 2.4.2

2011-06-14 Thread Andrew Brookins
utocommit() File "[project_dir]/lib/python2.6/site-packages/django/db/backends/creation.py", line 448, in set_autocommit self.connection.connection.autocommit = True psycopg2.ProgrammingError: autocommit cannot be used inside a transaction Reverting to psycopg2 2.4.1 fixes the prob

Re: Test runner fails with Django 1.2.1 and psycopg2 2.4.2

2011-06-14 Thread Andrew Brookins
Looks like there's already a ticket (my search-fu failed me): https://code.djangoproject.com/ticket/16250 Andrew -- 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.c

Re: Unit-Testing Dilemma

2011-06-21 Thread Andrew Brookins
You don't need mocks or dependency injection in this case. Just separate the message construction code, so you can test it in isolation: # myapp.views from django.http import HttpResponse from myapp.models import CurrentState from myapp.exceptions import ApiFailureException from third_party.api i

Django Static Files

2011-06-24 Thread Andrew Brookins
If django srrvd -- 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/-/iD1QqxpokR8J. To post to this group, send email to django-users@googlegroups.com. To unsubsc

Django Static Files

2011-06-24 Thread Andrew Brookins
Sorry: posting from phones... Not always awesome. If the development server serves your static files, but Apache does not, then the problem is likely somewhere in your Apache conf or server config. -- You received this message because you are subscribed to the Google Groups "Django users" grou

using signals to add users to a group

2011-07-18 Thread Andrew Marder
reate in models.py may not be inserted in the test database. Any ideas for good work arounds? https://github.com/mvpdev/nmis/blob/feature%2Fdj13/user_management/models.py#L29 https://github.com/mvpdev/nmis/blob/feature%2Fdj13/user_management/tests.py#L35 Andrew -- You received this message becaus

Re: using signals to add users to a group

2011-07-19 Thread Andrew Marder
Hi Shawn, I've pasted the traceback below, I need to write some more tests to give you better information. Andrew $ python manage.py test user_management Creating test database for alias 'default'... ..F

Releasing my Fabfile for Django projects

2011-08-10 Thread Andrew Badr
, and read my perspective on the project at http://andrewbadr.com/log/9/django-fabfile/. -Andrew -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from t

IndexError when validating model formsets

2010-12-23 Thread Andrew Badstubner
I have a form that contains a parent object in the header and then lists the children as a formset in the same HTML . I can create new "families" of parent objects and children just fine, but I can't edit them. I've tracked the error down to the line where the view is trying to instantiate the Form

Re: IndexError when validating model formsets

2010-12-23 Thread Andrew Badstubner
Nevermind. I found that I was not instantiating the formset with the "instance" argument, naming the parent object. Once that was added, everything worked as designed. -AB On Thu, Dec 23, 2010 at 9:02 PM, Andrew Badstubner wrote: > I have a form that contains a parent object in t

Mongo - testing

2011-01-20 Thread Andrew Marder
nvironment variable in Django that will tell me whether my code is being tested. Thanks for the help, Andrew http://groups.google.com/group/django-users/browse_thread/thread/3a5a756782d24b5e?pli=1 -- You received this message because you are subscribed to the Google Groups "Django users&

Re: Mongo - testing

2011-01-22 Thread Andrew Marder
Thanks Javier and Konrad! I searched github a bit and it looks like django-mongokit has done some work to solve this problem. I haven't used it yet, but it looks promising. Andrew http://www.peterbe.com/plog/how-and-why-to-use-django-mongokit On Jan 21, 3:59 am, Konrad Delong wrote: &g

Re: urls.py and views.generic issue

2011-02-23 Thread Andrew Petaisto
Thanks for all the help, I've learned a lot! I was able to figure out why the last two wouldn't resolve. The url part /(?P[-w]+)/$ should be / (?P[-*\*w]+)/$ that way it looks for all words instead of w's with -'s. I fixed that and it now works. Once again thanks for all the help, I have include

Pagination of Search Results - URL issue

2011-03-21 Thread Andrew Godfrey
t_list %} {{photo.title}} Date Taken: {{photo.date_taken|date:"j F Y"}} Link to large image: {{ photo.image.url }} {% endfor %} {% else %} Please try again using more specific words. If you are still unable to fin

mark_safe and ValidationError params

2015-02-06 Thread Andrew Pinkham
es the tags as opposed to having them output as HTML. The problem occurs when I remove the call to ugettext as well, and while I expect to only need to apply mark_safe to the value in params, I apply the function to all of the text above. Am I doing something silly? How do I properly apply mark

<    1   2   3   4   5   6   7   8   9   10   >