Re: Request POST String

2009-11-26 Thread Chris
Awesome, that looks like it. Thanks. On Nov 26, 4:01 pm, Masklinn wrote: > On 26 Nov 2009, at 16:55 , Chris wrote: > > > Hi all, > > > Sorry for bothering you with something that is probably fairly > > straight forward but I cant seem to find the solution myself. >

Does Django support sockets of type SOCK_STREAM for full-duplex communication with a client?

2009-12-21 Thread Chris
'something' ) ... Could you advice on possible approaches to come up with a Django implementation of a backend that can work with such client, please? Thank you, Chris -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

multiple databases -- database across sites?

2010-06-10 Thread chris
. Chris -- 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. For more options, visit thi

Streaming File Uploads with Lighttpd+Django

2010-07-12 Thread Chris
Hi all, I just recently deployed my django site from the included development webserver to a production server with lighttpd. I'm new to both Lighttpd and Django so forgive my ignorance. When using the development webserver, I can see streaming files in the tmp directory grow if the uploaded fil

Re: Streaming File Uploads with Lighttpd+Django

2010-07-12 Thread Chris
Nevermind, I finally found my answer after hours of searching in this thread: http://forum.lighttpd.net/topic/1142 On Jul 12, 11:08 pm, Chris wrote: > Hi all, > > I just recently deployed my django site from the included development > webserver to a production server with lighttpd.

Strange unit test / OAuth Issue

2010-09-07 Thread Chris
So I wrote some django unit tests for an app that uses OAuth and I ran into this strange issue when attempting to set my verifier: On my local dev machine it likes me to set my verifier like so: token.set_verifier(verifier) On my production machine it like me to set my verifier like so: oauth_req

Re: Strange unit test / OAuth Issue

2010-09-09 Thread Chris
ve in each place? > > Even if there isn't a usable version indicator in the library, you could > generate a file containing the chacksums of all the py files, sort it, and > compare it. > > On Tue, Sep 7, 2010 at 4:46 AM, Chris wrote: > > So I wrote some django unit tes

How to launch home page from urls.py?

2010-10-13 Thread Chris
gone through the documentation and a couple of books, but I cannot figure out how to launch "HomePage.html" by using just "a.b.com". Any help is highly appreciated! Thank you, Chris -- You received this message because you are subscribed to the Google Groups "Django

Issue uploading photos through the admin. PIL issue.

2010-11-22 Thread Chris
I am having an issue with uploading photos through the admin. I get this error: "Upload a valid image. The file you uploaded was either not an image or a corrupted image." I am using ubuntu 10.04, python 26, virtualenv, and and pip. Is there a known issue with installng pil through pip + virtualen

Re: Issue uploading photos through the admin. PIL issue.

2010-11-22 Thread Chris
Opps, Just solved my own question. python-dev is required which I had installed. I found a package called pillow which seems to take care of the issue that I was having. On Nov 22, 2:07 pm, Chris wrote: > I am having an issue with uploading photos through the admin. I get > this

Re: Weird problem after schema change

2010-11-30 Thread chris
involved than a simple check. Ah well. Thanks, Chris On Nov 25, 7:07 pm, Venkatraman S wrote: > On Fri, Nov 26, 2010 at 6:30 AM, Chris Tandiono > wrote: > > > How can I get the date field to show up in the admin interface? > > Couple of checks: > - have you defined any c

Easy database modeling question

2010-01-20 Thread Chris
This is my first Django experience and I'm having trouble figuring out the right answer to the right relationship to have. (brain fart maybe.. ) I have a site that users have profiles and can message each other. So my model looks like: class User(models.Model): username = models.CharField(max_

Storing API Passwords

2010-03-01 Thread Chris
Hello, When working with photo API's such as twitpic, what is the best way of storing the password? Since the password needs to be sent in its natural form, hashing is not an option. I read recently heard that a company was held accountable (sued) for not encrypting their user's API passwords and

URL Method

2008-01-12 Thread Chris
HI I was tinkering around with this django app called basic blog (http://code.google.com/p/django-basic-blog/) and I noticed that the author uses a method called URL() to define his URL patterns, views, and template objects. Should I start writing my url expressions like this? Is it a new standard

generic views

2008-01-14 Thread Chris
Hello I am working with a generic view and I am trying to grab the url expression variable and pass it to a dictionary for the generic view to use but I keep getting an error that the variable is not defined. Its obvious that the variable is not defined yet but is there a way that I can make this

Re: generic views

2008-01-14 Thread Chris
orking? On Jan 14, 12:30 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote: > You must specify details in pattern > definitianhttp://www.djangoproject.com/documentation/generic_views/ > > On 14 янв, 20:08, Chris <[EMAIL PROTECTED]> wrote: > > > Hello I am w

Re: generic views

2008-01-14 Thread Chris
'paginate_by':15, > } > return object_list( request, CATEGORY_DETAIL ) > > #urls.py > urlpatterns = patterns('', > (r'^category/(?P[-\w]+)/$', > 'my_app.views.my_view' ), ) > > With proper names of course > &g

tagging

2008-01-19 Thread Chris
Hello I wrote a tagging app and it is not validating when I attempt to install it into my database. The error is related to the TAG_FILTER tuple located in my models file. Its not validating b/c the table does not exist. Does anyone know of a better way of doing what I am trying to accomplish. Co

Re: tagging

2008-01-19 Thread Chris
Never mind had a brain fart. I should use models.ForeignKey(ContentType,). On Jan 19, 4:36 pm, Chris <[EMAIL PROTECTED]> wrote: > Hello I wrote a tagging app and it is not validating when I attempt to > install it into my database. The error is related to the TAG_FILTER > tupl

Post Save

2008-01-21 Thread Chris
I have a weblog that I am creating and it has a table with fields called title and url_name. I would like to make it possible for the user to simply enter the title of the blog and then django would auto format the url_name for me based off of the title. ex. - title = My First Blog -->gets transl

Django media project

2008-01-21 Thread Chris
Hello I just opened a new project on google code and I was wondering if there was anyone that would be willing to help me work on this project in their free time. Check it out. http://code.google.com/p/megal/ Please give me feed back too. Hope I am not violating any rules by posting this here. It

category counter

2008-01-24 Thread Chris
hello again. thanks for all the help that everyone has offered me here. I have a generic django application called categories and it serves to provide categories for various apps suchas a weblog or an articles application. So a weblog and article app both have a M2M relation to the catergories ap

Re: category counter

2008-01-25 Thread Chris
<[EMAIL PROTECTED]> wrote: > On Jan 25, 12:42 pm, Chris <[EMAIL PROTECTED]> wrote: > > > Thanks for reply but that is not what I am looking to do. my [EMAIL > > PROTECTED] table > > is NOT the categories table. > > Well, as I said in my earlier post, you still

dynamic model calls

2008-01-25 Thread Chris
Hello, I am seeking to do something like this: def dynamic_model_call(model_name): test = model_name.objects.all() return test I saw where I could do something like this: def dynamic_model_call(model_name): exec("test = %s.objects.all()" % model_name) return test But this doesn

Re: category counter

2008-01-25 Thread Chris
Cool. I tried that early and it didn't work. I just tried it again and it seems to work. must of keyed something in wrong. >>> Weblog.objects.filter(category__id='1').count() 3L Thanks for your help. On Jan 25, 2:08 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrot

Re: category counter

2008-01-25 Thread Chris
Thanks for reply but that is not what I am looking to do. my [EMAIL PROTECTED] table is NOT the categories table. In django, when it generates your models, it automatically generates your M2M table reference. so I have a table called blog that has a m2m relation with categories. (blog-->M2M-- >ca

Re: category counter

2008-01-25 Thread Chris
WHERE ...; > > If you know how to get all categories by using filter(), just > put .count() at the end and you get the result. > > HTH, > Thomas Güttler > > Am Freitag, 25. Januar 2008 08:47 schrieb Chris: > > > hello again. thanks for all the help that everyone has

dynamic tag count

2008-01-29 Thread Chris
Hello I have a Tagging app that I have created which could have a m2m relation with several other applications suchas a weblog, projects, articles,etc... I am trying to do something like this: tag_list = Tag.objects.all() for tag in tag_list: print tag.weblog.count() Is there a way to dyna

A slug question

2008-01-31 Thread Chris
I have a blog that has a slug field that gets pre-populated from the title of the blog. I then use the slug name as a part of the url. eg - www.xyz.com/weblog/weblog-title-goes-here/. My question: what if I have a weblog title that is identical to a post that I made 3 years ago and I didn't realiz

Re: A slug question

2008-01-31 Thread Chris
Cool Thanks for the replies. I think that Luke's snippet find is going to work. Unique is also a good way thanks. On Jan 31, 5:15 pm, "James Punteney" <[EMAIL PROTECTED]> wrote: > > My question: what if I > > have a weblog title that is identical to a post that I made 3 years > > ago and I didn

User permissions

2008-01-31 Thread Chris
I've been reading up on user permissions and I have found that user permissions are on a per-model basis. My question: If I have a photo gallery application, and I have several uses who can post their galleries to this application. Is there a way to create permission on a per-user basis. Example m

Code upgrade

2008-02-05 Thread Chris
Hello, does anyone have a script that will upgrade django code from . 91 to .96. I know that there are upgrade scripts out there just not sure where I can obtain them. Would very much like to upgrade code repository to 96. thanks --~--~-~--~~~---~--~~ You received

Re: Code upgrade

2008-02-05 Thread Chris
so does anyone have such a script on hand. I have partially written one that uses regular expressions to evaluate everything but I think that it is still quite a ways off from getting it to a working point. On Feb 5, 1:52 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Feb 5, 2008 12:33 PM,

Re: Code upgrade

2008-02-06 Thread Chris
James, Does magic removal help to upgrade code from 91 to present or is it a set of code used to assist with writing a potential application that could do this? Thanks for all your help. You are very helpful on this forum. Chris On Feb 5, 3:17 pm, Chris <[EMAIL PROTECTED]> wrote: >

comment system

2008-02-09 Thread Chris
hello. I have been looking at django's comment system and am going to implement it into my weblog but was wondering how stable it is. (If 'stable' is the proper word to use). In the django book it states that the comment system is still under heavy development and on the site there is not much doc

embed to models forms in the same form

2008-02-09 Thread Chris
In the admin panel if I have a model called books and a model called author, and books has a FK to author, is there a way to import the form for author to show up in the books form instead of having the dropdown menu or some kind of pop up window that takes you to the author form. I want it embedd

forms question

2008-02-14 Thread Chris
will there ever be an forms.as_div method? tables seems kinda old school. --~--~-~--~~~---~--~~ 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 un

ViewDoesNotExist admin error.

2008-03-04 Thread Chris
Hello, Not sure what has happened but I keep getting this error when attempting to login to my admin section. I key in Username and pass and once I press submit django returns this error: Request Method: GET Request URL:http://django.xyz.net/admin/ Exception Type: ViewDoesNotE

Django-UML Generator

2008-03-25 Thread Chris
So I had this idea and was looking for some thoughts on this: When starting a new website, normally a client gives you a handful of documents on what he/she wants. Most of the time this person is technically illiterate so interpreting what he/she into a django model is often a challenge. i propose

Re: Django-UML Generator

2008-03-25 Thread Chris
ould go poorly. Besides, pencil + paper goes a long > way in client discussions like that. > > -justin > > > > On Tue, Mar 25, 2008 at 1:22 PM, Chris <[EMAIL PROTECTED]> wrote: > > > So I had this idea and was looking for some thoughts on this: > > When start

ORM / General Database Question

2008-04-02 Thread Chris
I've done this without questioning it ever since I can remember : no matter what, assign a primary key to everything. Is this necessary when you have a ForeignKey relation? Can the ForeignKey be the unique identifier in the table? --~--~-~--~~~---~--~~ You receive

middleware question

2008-04-02 Thread Chris
Is there a way to grab content_type and object_id in a middleware processor? Example if I went to my articles section: http://www.xyz.com/articles// could I some how get the content_type and the object_id from the request context that is passed in? I want to be able to perform a middleware task bu

Re: middleware question

2008-04-02 Thread Chris
Can anyone help me with this? It looks like I need to pass in a django_content_type= to the request context before it gets passed to the middleware for further processing. Any thoughts? On Apr 2, 3:37 pm, Chris <[EMAIL PROTECTED]> wrote: > Is there a way to grab content_type and objec

Populate_xheaders

2008-04-03 Thread Chris
Hello, why does populate_xheaders only work if you are authenticated and staff OR if the request comes from an internal IP? It would be nice if I could have these: response['X-Object-Type'] response['X-Object-Id'] for normal requests to work with middleware that I am writing. Is it a security re

Re: Populate_xheaders

2008-04-03 Thread Chris
Any suggestions? Hope everyone is having a fabulous day! Thanks for all the help you all have provided here. On Apr 3, 10:35 am, Chris <[EMAIL PROTECTED]> wrote: > Hello, why does populate_xheaders only work if you are authenticated > and staff OR if the request comes from an inte

Re: Populate_xheaders

2008-04-04 Thread Chris
Does anyone have some input to this? On Apr 3, 1:18 pm, Chris <[EMAIL PROTECTED]> wrote: > Any suggestions? Hope everyone is having a fabulous day! Thanks for > all the help you all have provided here. > > On Apr 3, 10:35 am, Chris <[EMAIL PROTECTED]> wrot

Article Count

2008-04-04 Thread Chris
If I have an article model that has an article_count field, would it be better to increment the article when you grab the article in the view or increment with middleware? and how about when caching is involved? --~--~-~--~~~---~--~~ You received this message becaus

Re: Article Count

2008-04-04 Thread Chris
ust not sure what you are trying to > accomplish. > -rfd > > On 4/4/08, Chris <[EMAIL PROTECTED]> wrote: > > > > > If I have an article model that has an article_count field, would it > > be better to increment the article when you grab the article in the >

model subclassing

2008-04-08 Thread Chris
I am trying create a custom model field that will create 2 field instances, a CharField and a booleanField. I am using this with signals and dispatchers to insert data entered from this custom field into another model/table that contains a boolean and char field. my question is: how can I return 2

Re: model subclassing

2008-04-09 Thread Chris
Thanks looks very helpful. I will look over that when I get a free moment. On Apr 9, 10:39 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi, > > On Apr 9, 12:30 am, Chris <[EMAIL PROTECTED]> wrote: > > > I am trying create a custom model field that will c

django calendar for a datatime field

2008-04-15 Thread Chris
Hello friends, Is there a simple way to add the calendar widget (as seem in admin) into a custom form field such as if I have a form with a date of birth field? Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

login with email

2008-04-17 Thread Chris
hello, I am working on a website where our client wants to login through use of an email. I have the registration part figured out but when I go to login as shown here: http://dpaste.com/45576/ I can't get a user object to return from authenticate. any suggestions? thanks in advance! --~--~

Re: login with email

2008-04-17 Thread Chris
> Unless you imported Auth into the local namespace you need to call > auth.authenticate(). Thanks for the humor!! :) >>> from django.contrib.auth import authenticate, login >>> test = authenticate(username="testuser", password="testpass") >>> test If that were the case it would more than l

Authenticate

2008-04-21 Thread Chris
So I have created a user profile model the extends the User model. I am having issues with trying to authenticate. So I gather some information and and attempt to save it out but when I go to authenticate shorty after, the auth.authenticate does not return a user object therefore not logging the u

authenicate

2008-04-28 Thread Chris
Anyone see what I am doing wrong here? http://dpaste.com/47296/ Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups

Re: authenicate

2008-04-28 Thread Chris
Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Apr 28, 2008 at 4:01 PM, Chris <[EMAIL PROTECTED]> wrote: > > > Anyone see what I am doing wrong here? > > >http://dpaste.com/47296/ > > > Thanks in advance. > > You put some of your close parens in odd place

file upload question

2008-05-06 Thread Chris
Hello I have a csv importer that I have made and I want to upload the csv file through a form field as so: from django import newforms as forms class ImportForm(forms.Form): """ Form for importing CSV files """ csv_file = forms.FileField() next I do something like this: for

Custom Form Fields

2008-05-07 Thread Chris
Hello everyone, I noticed that Django tagging uses a custom field called TagField that allows you to insert tags directly relating to your application you inserted TagField in. Is there an easier way of accomplishing the same type of results that django tagging does with Tagfield()? I want to be

Group by for querysets

2008-05-09 Thread Chris
Is there a group_by method when getting querysets? Check out the following example. class SportsEvent(models.Model): """Sports""" name = models.CharField(max_length=255) sport_type = models.ForeignKey(Sport) event_date = models.DateTimeField() class Sport(models.Modle): """s

Strange New Forms Issue

2008-05-14 Thread Chris
Hello I created a new forms form and I am having uses with this statement: year_of_birth = forms.ChoiceField(required=False, choices=YEAR_OF_BIRTH) and tuple looks like so: year_of_birth = ((1990, '1990'), (1989, '1989'), ...) On my local dev server, I have latest django and use sqllite

Re: Strange New Forms Issue

2008-05-15 Thread Chris
Could someone help me out with this error or Warning as it states in the exception? On May 14, 6:14 pm, Chris <[EMAIL PROTECTED]> wrote: > Hello I created a new forms form and I am having uses with this > statement: > > year_of_birth = forms.ChoiceField(require

Re: Strange New Forms Issue

2008-05-15 Thread Chris
strange issue. Chris On May 15, 9:38 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, May 14, 2008 at 6:14 PM, Chris <[EMAIL PROTECTED]> wrote: > > > Hello I created a new forms form and I am having uses with this > > statement: > > >

Re: Strange New Forms Issue

2008-05-15 Thread Chris
Django Community? Should there be some automation that realizes that it is a choices list for an IntegerField and should not include this " " but should include this None as the default blank field? On May 15, 12:21 pm, Chris <[EMAIL PROTECTED]> wrote: > Hi Karen, > >

Form Fields Question

2008-05-21 Thread Chris
Why does django by default output html id's in form fields? I thought that it was good practice to use the class attribute in child elements of an html form and to only use id on your container (parent) element such as the form element. I think I read somewhere that classes are faster to create an

Re: Form Fields Question

2008-05-21 Thread Chris
ay 21, 3:32 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On Wed, May 21, 2008 at 3:16 PM, Chris <[EMAIL PROTECTED]> wrote: > > Why does django by default output html id's in form fields? I thought > > that it was good practice to use the class attribute

Re: Form Fields Question

2008-05-21 Thread Chris
t; wrote: > On May 21, 2:05 pm, Chris <[EMAIL PROTECTED]> wrote: > > > I wasn't saying that django was performing bad practice, I was just > > curious as to why id over classes. > > > Thanks for the input. > > Well if you are using AJAX it's necessary

Re: package directory \django does not exist

2008-06-01 Thread Chris
Python isn't checking your Desktop for modules. Untar it under your python directory. Preferably, "site packages" slix wrote: > i untared the official download and ran setup.py install from the > desktop where it is placed. > > should i first place the django, docs and scripts folders in site

Creating a Scheduled Task

2008-07-12 Thread Chris
he standalone ORM, but is there any way to incorporate this into admin so I can see what tasks are run and when? Thanks, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Updating Database Schema

2008-07-12 Thread Chris
What's the best way to update database schema? If I add a column to a table in my models.py and then run "manage.py syncdb", it doesn't add the new column in the database. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Updating Database Schema

2008-07-12 Thread Chris
On Jul 12, 3:31 pm, Jeff Anderson <[EMAIL PROTECTED]> wrote: > Chris wrote: > > What's the best way to update database schema? If I add a column to a > > table in my models.py and then run "manage.py syncdb", it doesn't add > > the new column in the

Accessing User Object From Template

2008-07-12 Thread Chris
According to http://www.djangoproject.com/documentation/authentication/ each template should have access to the variable "user" by default. However, after I login, this variable doesn't seem to be defined. Is there any special configuration required to have access to this? The only weird thing I i

Left Outer Join

2008-07-12 Thread Chris
d http://www.djangoproject.com/documentation/model-api/#relationships but I don't think it covers this case. Regards, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Accessing User Object From Template

2008-07-12 Thread Chris
On Jul 12, 11:30 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > Are you using RequestContext, not Context, as mentioned here: Nope, thanks for the clarification. I guess I misinterpreted the technicality note that says that&#x

Template Language Design

2008-07-13 Thread Chris
esn't support {% else %}. I had a very simple use case where I wanted to do something like: {% if a == 1}blah{% else %}foo{% endif %} and the closest I can get is: {% ifequal a 1 %}blah{% endifequal %}{% ifnotequal a 1 %}foo{% endifnotequal

Re: Template Language Design

2008-07-13 Thread Chris
Thanks for the clarifications everyone. It seems less crazy now ;) --~--~-~--~~~---~--~~ 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 unsubscrib

Re: Newbie django/python with C++ background wants enums

2012-02-01 Thread Chris
A different way would be to define constants: YES = 'Y' NO = 'N' TO_USE= ( (YES, 'Yes'), (NO, 'No'), ) --- from myapp.models import YES class XForm(forms.ModelForm): def clean(self): cleaned_data=super(XForm, self).clean() txt= cleaned_data['txt'].strip()

Re: Error

2012-02-06 Thread Chris
It's unable to find the python module openid, I would assume, that you just don't have the openid python module installed. Since you appear to be using linux, you should just be able to, on the command line, do: pip install python-openid And it should download and install the module. On Feb 6, 7

Auth app in separate database

2012-03-28 Thread Chris
Has anyone been successful in putting the auth application in a separate database so that users can be shared with different django projects? When I try to put the auth application in a different database I get an error with syncdb: django.db.utils.DatabaseError: relation "auth_permission" does n

Re: Auth app in separate database

2012-03-29 Thread Chris
t on each other. On Thursday, 29 March 2012 12:15:49 UTC-4, Josh Cartmell wrote: > > Couldn't he also just add the router before syncdb and then they would > be created in the correct database? > > Chris take a look at this documentation if you haven't already, it >

Appropriate way to override Model __getattr__ in 1.4

2012-06-04 Thread Chris
What's the appropriate way of overriding the a Model class's __getattr__ in Django 1.4? I have a model structure like: class Main(models.Model): [blah] class Detail(models.Model): main = models.ForeignKey(Main) name = models.CharField(max_length=255) value= models.CharField(max_leng

Custom 403.html

2012-07-10 Thread chris
I have a view that returns HttpResponseForbidden('No permission') if a user shouldn't be on that page. It shows the message 'No permission' and the correct 403 response, but nothing else. I would like it to use my 403.html template I have in my root template directory no match the rest of the s

Interesting error with django.simple.test.DjangoTestSuiteRunner

2013-02-06 Thread chris
nit__ method (seems hacky). Thanks, Chris -- 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

Re: delete obsolete content type entries...

2013-03-25 Thread chris
It seems that stale content types return `None` for `ContentTpye.model_class()` , so the following deletes all stale content types. I would back up and test this extensively first though because deleting content type you don't want to is dangerous. for c in ContentType.objects.all(): if not

Re: Django South - SyntaxError: invalid syntax (, line 1)

2013-10-01 Thread Chris
Ivan, Did this code paste correctly? There is a syntax error in the save method: def save (self, force_insert = False, force_update = False): self.nome self.nome.upper = () <--- SYNTAX ERROR super (Carrier, self). save (force_insert, force_update) Is that supposed to be: self.

Inline Form Error After Upgrade to Django 1.3

2011-04-18 Thread Chris
x27;m quite stuck. How do I resolve this? Regards, Chris -- 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-user

Re: empty DateTimeField?

2011-01-11 Thread chris
As Justin mentioned, my guess is that you would have to manually update the table definition to allow nulls for that column. On Jan 11, 7:21 pm, galago wrote: > I tried but I get: > Exception Type: IntegrityError Exception Value: > > (1048, "Column 'publish_date' cannot be null") > > Exception L

How to display value from a sub model in the template

2011-02-20 Thread Chris
ue of the sub model when looping players in the team object? Showing value of the player model work fine but not the sub model. I tried various syntax but nothing seem to work. Thanks, Chris Here are the model and the template i'm building : model.py class Team(models.Model):

I'm having problem showing from the value a sub-sub model.

2011-02-21 Thread Chris
eem to work. It seem something obvious but I can't manage to find it in the doc. Any pointers would be helpfull. thanks, Chris Here my model class Team(models.Model): team_name = models.CharField(max_length=200) city = models.CharField(max_length=200) #propably FK later def __unicod

Re: How to display value from a sub model in the template

2011-02-21 Thread Chris
The default (from the doc F00_set so: ) playerVital_set and playerSkills_set So I want the first set for each of them ... (sorry for the double post by the way) On Feb 20, 9:10 pm, Shawn Milochik wrote: > What are the related_name values you gave to the foreign key fields of > your related mode

Re: I'm having problem showing from the value a sub-sub model.

2011-02-22 Thread Chris
sorry your right, I didn't receive any notification so I thought it wasn't posted. I've answered in the original thread On Feb 21, 2:00 pm, Shawn Milochik wrote: > Why are you re-posting this? You posted it over the weekend. I > replied. If my reply didn't help, tell us the new problem you're > h

Django TidyFields

2019-04-24 Thread chris
sheet methods. In the initial release 30 different attacks are tested, and the rest will be added in the next version. Future plans include adding form fields with integration support for WYSIWYG libraries like django-summernote. I hope you find the module useful, Chris Routh Github: Routhi

Channels: can I run a worker in the same process?

2019-06-07 Thread Chris
I'm getting started with Channels 2.x. In my web app, certain actions take more than 30 seconds to complete, so rather than doing it synchronously in the request, we do the processing in the background. It seems that any background task requires ChannelNameRouter and a separate runworker proces

Channels: can ApplicationCommunicator get events from my channel layer?

2019-06-08 Thread Chris
I am writing an integration test that loads a page, which somewhere internally calls get_channel_layer().send() to my ChannelNameRouter. I want the event to be consumed and then make various assertions. I think that I need to instantiate an ApplicationCommunicator with my application instance f

channels_redis & async_to_sync performance problem

2020-03-29 Thread Chris
Hello, I have a worker process that uses async_to_sync(group_send) to send messages to my Channels consumers. The worker process is a simple long-running synchronous loop (not based on Django Channels) that is started via a Django management command. When I use runserver and the in-memory chan

Field Instances overriding each others arguments

2018-10-18 Thread chris
) comments = GenericRelation(settings.COMMENT_MODEL) On this model the `body` field which is the last field on the model overrides the self.args of all the BleachCharField and BleachedTextField instances before it, so they all take the same parameters. Am I missing something on this? Is sel

Re: Field Instances overriding each others arguments

2018-10-18 Thread chris
Got an answer on StackOverflow https://stackoverflow.com/questions/52878934/django-field-instances-overriding-each-others-arguments/52879102#52879102 I was linking to a mutable dict instead of copying it. That was a bit dumb. Cheers, Chris Routh From: ch...@routh.io To: "django-

Channels: about max message size

2018-10-23 Thread Chris
I use Channels & websockets for my webapp's "export data" functionality, since it can take a long time to generate the file (more than 30 seconds). In general this works fine, even for large downloads (several MB), but I have seen several cases on Heroku where the browser never receives the mes

Re: Channels: about max message size

2018-10-24 Thread Chris
tly can't remember, that was years ago. > There's really not much I can do other than recommending an upgrade to > something vaguely recent. > > Also make sure Heroku is not cutting you off with a request timeout or > something. > > Andrew > > On Tue,

Cannot get Django test migrations to detect test models.py

2018-11-03 Thread chris
Hi folks, I'm trying to build a test suite for a django plugin for a field. To test the field I need to have a test model, but since my django app does not provide models, and I have the model in the /tests/models.py it's not detecting the model when the test db migrations are applied. I saw som

Re: Cannot get Django test migrations to detect test models.py

2018-11-05 Thread chris
I'm not sure you understood the question. From: "amit pant" To: "django-users" Sent: Monday, November 5, 2018 2:24:51 AM Subject: Re: Cannot get Django test migrations to detect test models.py can you register your model in admin.py? If not then go for it. On Sun 4 Nov, 2018, 12:10 AM

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