Re: Channels with django signals

2018-02-03 Thread John Wayne
Oh I saw that you fixed it recently. Thank you anyway :) On Sunday, February 4, 2018 at 1:22:58 AM UTC+1, Andrew Godwin wrote: > > Hi John, > > This is fixed in the asgiref master branch, I should be releasing it soon. > > Andrew > > On Sat, Feb 3, 2018 at 4:14 PM, John

Channels with django signals

2018-02-03 Thread John Wayne
Hi everyone, I am trying to send a channels message from a django signal. The problem ist that the signal function is not async. So I tried to use the AsyncToSync wrapper. But it seems this is not possible as the signal handler is run by a thread and has no event loop. ... self.main_event_

Re: Getting channels 2 to work

2017-12-04 Thread John Wayne
> > I'll have a lot more docs and stuff coming soon as I start prepping > Channels 2 for a beta release, which will include routing and setup > examples. > > Andrew > > On Fri, Dec 1, 2017 at 6:03 AM, John Wayne > wrote: > >> Hi everyone, >> >> I am

Getting channels 2 to work

2017-12-01 Thread John Wayne
Hi everyone, I am stuck getting the new channels 2 to a working state. I installed django==2.0rc1, and channels==2.0.x, daphne==2.0.x, asgiref==2.0.x from the git repo channels is enabled inside the settings.py. I also created the asgi.py file in the direcotry of the wsgi.py file acording to t

Re: Template Not Applying - Django Polls Tutorial (Newbie Question)

2014-12-29 Thread Ken Wayne
llin > > On Tuesday, December 23, 2014 5:18:49 PM UTC-6, Ken Wayne wrote: >> >> Hmmm, that is one of the directories I tried, >> C:\Python34\Scripts\mysite\templates\admin with the file base_site.html >> >> On 12/23/2014 5:07 PM, Néstor wrote: >> >

Re: Template Not Applying - Django Polls Tutorial (Newbie Question)

2014-12-23 Thread Ken Wayne
/polls/index.html That is how I got it to work. Good luck!!! :-) On Tue, Dec 23, 2014 at 2:13 PM, Ken Wayne <mailto:ecommg...@gmail.com>> wrote: Windows 8 Django 1.7.1 Python 3.4.2 Google Chrome Version 39.0.2171.95 m Bottom of part 2 of the the tutorial

Template Not Applying - Django Polls Tutorial (Newbie Question)

2014-12-23 Thread Ken Wayne
Windows 8 Django 1.7.1 Python 3.4.2 Google Chrome Version 39.0.2171.95 m Bottom of part 2 of the the tutorial https://docs.djangoproject.com/en/1.7/intro/tutorial02/ it indicates how to customize the admin template but when I follow the directions it doesn't show any change in my browser. I've

Poll Tutorial (for Django 1.7) Files Available?

2014-12-22 Thread Ken Wayne
I'm trying to work through the Poll Tutorial and I've run into some problems. I'd like to compare the code I've written to a working file. Is there any place to download the entire working project? -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Loading fixtures in Django 1.7

2014-11-11 Thread Leonard Wayne
Fred, Got it!! Thank you!! - Leonard On Sunday, November 9, 2014 5:46:30 PM UTC-5, Leonard Wayne wrote: > > I am in the process of upgrading from > Django 1.6 to 1.7. > > I have three fixtures. I am trying to figure > out how I should load them. > > One fixture is `i

Loading fixtures in Django 1.7

2014-11-09 Thread Leonard Wayne
I am in the process of upgrading from Django 1.6 to 1.7. I have three fixtures. I am trying to figure out how I should load them. One fixture is `initial_data.json`, and I know that starting with Django 1.7 this special fixture no longer gets automatically loaded as it did when we used to run `s

Re: What editor do you use for .po files?

2012-08-08 Thread wayne
A neat new tool to edit .po files ( gettext ) is http://poeditor.com/. It’s online, free and very easy to use. It also permits collaborative work and imports from multiple files. On Saturday, June 20, 2009 12:05:08 AM UTC+3, Joshua Russo wrote: > > I started using PoEdit but it seems to thing

Re: ImageField filename

2012-01-27 Thread wayne
This is the same as the FileField. The UploadedFile class has a name property, which can be used.. https://docs.djangoproject.com/en/dev/topics/http/file-uploads/#handling-uploaded-files On Jan 19, 9:56 am, Mike Dewhirst wrote: > How do I get the actual filename of the uploaded image? > > The

Storing data from frequently changing forms

2011-10-11 Thread Michael Wayne Goodman
Hi all, I'm new to this and could use some help, I'm implementing a large-ish form-based application for an ongoing academic project. As students come and go, the form fields change frequently, so I'm wary to have form fields map to database entries. Does anyone have a good idea of how to store th

Re: modelformset partial save and AttributeErrors

2011-09-29 Thread Michael Wayne Goodman
; (not necessarily a Django session), besides putting all the data in the session dictionary, then I'd be happy to hear them. Thanks On Sep 28, 10:46 pm, Michael Wayne Goodman wrote: > Hi, I'm getting the following error when I try to assign a value to a > model attribute in a modelfo

modelformset partial save and AttributeErrors

2011-09-28 Thread Michael Wayne Goodman
Hi, I'm getting the following error when I try to assign a value to a model attribute in a modelformset: AttributeError at /number/ 'WSGIRequest' object has no attribute 'qsession' which occurs in the following snippet: numbers = formset.save(commit=False) for number in n

Re: Dynamic Forms with Varying init Arguments

2011-08-19 Thread wayne
our code is doing and such--your use of a primary key makes me think (but doesn't guarantee) that you are using a form to represent an instance of a model, and if so, you want to be looking there. Wayne -- You received this message because you are subscribed to the Google Groups &quo

Re: Dynamic Forms with Varying init Arguments

2011-08-19 Thread wayne
dicate to me that you are dealing with existing objects from models, in which case we should be talking about a ModelFormset. Wayne -- 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@googleg

Re: Dynamic Forms with Varying init Arguments

2011-08-19 Thread wayne
s of the form during initialization. What parameter is that? You should be able to accomplish what you describe without any Javascript, just like the code does at the link you provide. Wayne -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Form label is same as first RadioSelect item

2011-08-15 Thread wayne
of code (field, widget, etc.?) to do on my own in order to enable this functionality. I still would appreciate it if you could try the validator at webaim and see if you can replicate the error I see there (multiple lables for an input; the default as you describe it), as I am most interest

Re: Successfully Running Command Line Application from Django

2011-08-15 Thread wayne
On Aug 15, 2:40 pm, octopusgrabbus wrote: > I get a file permissions error, and this is running on Apache. > > It's dying on the retrbinary line. However, it's logging in using > valid user names and passwords, so I'm confused as to why it's dying. Yes, but it looks as though you are passing a ca

Re: Successfully Running Command Line Application from Django

2011-08-15 Thread wayne
What error exactly do you get? Do you encounter this error while using runserver, or is it live on a web server (Apache et al)? -- 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.

Form label is same as first RadioSelect item

2011-08-15 Thread wayne
re is a "better" (read: solution that doesn't require me writing the html) solution or a specific class/method to override that will correct this behavior. Or am I missing something else about this entirely? Thanks, Wayne -- You received this message because you are subscribed to th

multi-page, non-sequential, dynamic forms with serialization/deserialization

2011-06-14 Thread Michael Wayne Goodman
Hi all, I looked into Django for a specific task, but before I get too deep I want to make sure it is possible. We already have a site that does what we need (http://depts.washington.edu/uwcl/matrix/customize/ matrix.cgi), but it is written entirely in custom, proprietary code, and it is getting d

Pages not showing up in Django admin

2011-05-22 Thread Wayne
that by adding: Alias /static/admin/ /home/wayne/programming/build/django-trunk/django/contrib/admin/media/ To my apache conf. However, when I logged into the admin interface after registering polls, all I saw were: [image: http://docs.djangoproject.com/en/dev/_images/ad

Re: How to format a datetime in a webpage?

2011-01-29 Thread Wayne Young
Thank you very much! I misunderstood the meaning of "date" and "the time of day"... On Fri, Jan 28, 2011 at 8:53 PM, Jirka Vejrazka wrote: > > {{record.ComplaintTime|time:"Y-m-d > > H:i"}} > > From the documentation: > > "The time filter will only accept parameters in the format string th

How to format a datetime in a webpage?

2011-01-28 Thread Wayne Young
Hi all, I have come across an error when I tried to format a datetime in a webpage. This the part of webpage: {% for record in records.object_list %} {{record.ComplaintPhone}} {{record.CustomerName}} {{record.ComplaintTime|time:"Y-m-d H:i"}} {{record.Complai

Re: How to move inline into or above fieldsets in django admin?

2010-12-14 Thread wayne
{% include fieldset inline %} {% endif %} {% endfor %} {% for inline_admin_formset in inline_admin_formsets %}     {% include inline_admin_formset.opts.template %} {% endfor %} HTH, Wayne -- You received this message because you are subscribed to the Google Groups "Django users"

Re: How to move inline into or above fieldsets in django admin?

2010-12-11 Thread Wayne Smith
Well, the template is what controls the ordering of fields. You can create your own template that Django will then use in the admin interface. From there you can control exactly how things are displayed. On Dec 11, 2010 1:30 PM, "mongoose" wrote: > Hi wayne, > > to be hone

Re: Rendering a field value in a custom way

2010-12-11 Thread wayne
re code to write/upkeep. That said, you can use the model method plan, and do the same thing. I did it before when starting out, but now try to keep model methods strictly those which modify the model, and rendering/display methods in filters, since that is where the rendering happens. Wayne -- Y

Re: Django Form ChoiceField, initial not working

2010-12-11 Thread wayne
e your form, you can pass in a 'queryset=' argument that will do this for you. Wayne -- 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

Re: How to move inline into or above fieldsets in django admin?

2010-12-11 Thread wayne
gt;                         }), > >         inlines = [IngredientInline, PhotoInline] > >                 ('Cooking Instructions', {'fields': ['instructions']}), >                 ) > > Thanks a lot! I'm not sure if there is an admin setting

Re: can't add via admin, get django template error

2010-12-08 Thread Wayne Smith
On Wed, Dec 8, 2010 at 10:49 AM, JeffH wrote: > So I'm working along, everything's humming fine. Then I try to add a > record via the admin, and get the following: > > TemplateSyntaxError at /admin/expert/expertresponse/add/ > Caught AttributeError while rendering: 'unicode' object has no > attri

Re: When to use Form API

2010-12-08 Thread Wayne Smith
It is important to distinguish between display and functionality with forms. What I mean is, using the forms does not mean you have to render (display) them the way Django has it set up by default. I always use the Form API, and if I need custom validation on a field or the entire form, I overrid

Re: sum() of Model field or DB field

2010-12-07 Thread Wayne Smith
You want to use an aggregation function: http://docs.djangoproject.com/en/dev/ref/models/querysets/#aggregation-functions On Tue, Dec 7, 2010 at 11:14 AM, Jagdeep Singh Malhi < singh.malh...@gmail.com> wrote: > hi > > I want to use mysql Query : > Select sum(field_name) FROM table_name WHERE s

Re: General question about NOT EXISTS...

2010-12-07 Thread Wayne Smith
> > How does that look when you are building an object list in the Q( )... > style format? Where I am hung up is finding syntax examples of how to > do the functional equivalent of a sql where not exists clause. > > Is there a way to do this without using .extra() and using just normal > django? >

Re: admin view

2010-12-07 Thread Wayne Smith
To fire off an action (method) after an object is saved, you want to listen for its signal. Check out http://docs.djangoproject.com/en/dev/topics/signals/ On Mon, Dec 6, 2010 at 11:28 PM, commonzenpython wrote: > hey guys, im trying to get a script to run, like a view after a user > in the admi

Re: How to save data in the model in the second step of a 2-step form?

2010-12-06 Thread Wayne Smith
> > Thanks, that's fine, but I was wondering if there was a more scalable > way. I have more fields than just "description", so it would be nice > if they could be all saved with one method call, so I don't have to > maintain this code in case I change the model. > > If you have multiple fields des

Re: django auth for existing cgi

2010-12-06 Thread Wayne Smith
On Mon, Dec 6, 2010 at 4:42 PM, bc wrote: > Is there any simple way to use django authentication/authorization to > control access to an existing (not django) cgi? > > I could use subprocess.Popen to invoke the cgi after checking > authorization, but the environment needs to be set up to look lik

Re: doing validation in admin form

2010-12-06 Thread Wayne Smith
03:05 AM, Wayne Smith wrote: > > It's hard to say, because I don't know what kind of "validation" or > business > > logic regarding it you are trying to accomplish/employ. > > > > > suppose I want a validation like this: > > the number

Re: Beginner question on admin interface

2010-12-06 Thread Wayne Smith
> > Okay, honestly I believe it will be easier to go from scratch. However > I'd still like to ask, since the idea of having an almost-done admin > interface is very neat. > > > As the other reply indicates, that is a very tall order for a beginner. The admin interface is functional for editing, b

Re: How to save data in the model in the second step of a 2-step form?

2010-12-06 Thread Wayne Smith
> After the second form is done and valid, I would like to save the > information that comes to it to Image, in the same row that has the id > I was passing. > > How can I do this? > > > image.description = information user provided image.save() By the way, your overridden save() method looks a bi

Re: Problem with redirect

2010-12-06 Thread Wayne Smith
On Mon, Dec 6, 2010 at 7:00 AM, Quetzacotl wrote: > Hello, i want to make function that wraps all things related to > comments, so there should be part that gets comments from database and > part that checks if comment was added. Then i can simply write just > one line of code in view where i wan

Re: doing validation in admin form

2010-12-05 Thread Wayne Smith
It's hard to say, because I don't know what kind of "validation" or business logic regarding it you are trying to accomplish/employ. However, if you are wanting to ensure you validate a foto during a gallery save, why not call an overridden fotos.save() from your custom galeria.save()? On Sun, De

Re: Comments by guest and foreign key in model

2010-12-05 Thread Wayne Smith
You might want to use some logic involving anonymous users. See here: http://docs.djangoproject.com/en/dev/topics/auth/#anonymous-users On Sun, Dec 5, 2010 at 2:29 PM, andy wrote: > Well you don't have to make the foreign key field required, that way > comments belonging to guest users can have

Re: I'm trying to get this code http://paste.pocoo.org/show/300846/ to print a newline *before* each heading, what's the best way to do this?

2010-12-05 Thread wayne
You can just add the html to your template (like ). On Dec 5, 9:01 am, jc wrote: > I need this codehttp://paste.pocoo.org/show/300846/to print a > newline *before* each heading (essentially, wrapping it to the > next line). > Create another loop to do this or is there an easier way? > Thanks, >

Re: how can I clean a form field before the clean method?

2010-12-04 Thread Wayne Smith
Sure. Just override the clean method for the field, or the whole form if you wish. The built-in "default" validation done by Django doesn't handle any logic; it just makes sure the format and type of each field is appropriate. On Dec 4, 2010 1:44 PM, "refreegrata" wrote: > ok, thanks for the ans

Re: not able to see models.DecimalField in template

2010-12-04 Thread Wayne Smith
You shouldn't need to. How are you rendering your fields in your template? On Dec 4, 2010 1:21 PM, "Patrick" wrote: > I have 2 fields in my model: > listing.name and listing.amount > > listing.name shows up in the template but listing.amount does not. Do > I have to convert it to unicode first?

Re: main categories in menu

2010-12-04 Thread wayne
> So if a user enters mydomain.com/main1/page1 --> check if main1 exists > in the database --> render a menu of all pages which are linked to > main1 --> show page1 So, I take it that if the user enters the above, and main1 does not exist in the db, then you will raise an error (probably 404)? I

Re: how can I clean a form field before the clean method?

2010-12-04 Thread wayne
> I want to do something like: > > .default = MyModel.objects.get(field=True) > > and raise an exception if don't find in the table a row with a field = > True, but I don't have idea if something like this can be done. > I'm not always real good at understanding what someone wants. However, i

Re: Named URLs and class-based generic views

2010-12-03 Thread wayne
> I think the only thing that's bugging me is that you have to include > the whole views.py in your url conf.  Just feels less graceful than > having the dispatcher nab what it needs on demand.  I'll get over it. > Yeah, it does feel less graceful, doesn't it? That said, there might be a way, I

Re: Named URLs and class-based generic views

2010-12-03 Thread wayne
On Dec 3, 2:47 pm, Andrew Willey wrote: > Forgot to in mention the actual question from the subject. > > Is there a "blessed" way to use class-based views with named urls in > the > > > url(r'^location/$', view='WouldLoveToHaveClassBasedView.as_view', > > name='name_for_convenience') > Oh, I see

Re: Named URLs and class-based generic views

2010-12-03 Thread wayne
On Dec 3, 1:46 pm, Andrew Willey wrote: > Can someone point me in the right direction here? > > How does one use class-based generic views and named URLs? > > Example (doesn't work): > > > urls.py > > urlpatterns += patterns('myapp.views', > >    (r'^location/$', MyGenericView.as_view()), > > )

Re: how can I clean a form field before the clean method?

2010-12-03 Thread wayne
On Dec 3, 11:59 am, refreegrata wrote: > Ok, with hidden fields. But if the user manually, with some tool, > change the value, thats will be a problem. For my safety I must to use > the hidden fields and still keep the clean methods to overwrite any > possible editing over the fields value. Origin

Re: query date by string

2010-12-03 Thread wayne
On Dec 3, 11:13 am, oscar widjaya wrote: > It's for mysql > it still does not work. I tried it with the following sql statement > "SELECT * FROM project_project WHERE start_date LIKE '%s'" % '2010%%' Well, I assume that the double % at the end of your query is unintentional, as I don't think it

Re: models don't show in tamplate

2010-12-03 Thread wayne
Are you seeing anything? I mean, is the rest of the template rendering fine? There are only two things that I notice: the extra dict you pass with the template_object_name (why not put it in info_dict?), and while I'm not fluent in spanish, are you iterating through the variable 'object_list'?

Re: query date by string

2010-12-03 Thread wayne
On Dec 3, 10:47 am, owidjaya wrote: > It says incorrect date value. > What database are you using? I'm wondering if this is an issue of formatting the sql correctly. Did you read the snippet near the bottom of the page I linked to? Try: SELECT * FROM some_table WHERE some_date LIKE "%s" % '

Re: main categories in menu

2010-12-03 Thread wayne
On Dec 3, 2:11 am, Rob wrote: > I want to make main categories on my site like: > /main1/page1 > /main2/page2 > /main3/page3 It sounds like you have 3 views, and each one can pick from a pool of categories. If this is correct, all you need to do is enter a line for each view (main#), and pass th

Re: weird template escaping

2010-12-03 Thread wayne
Turn autoescape off (http://docs.djangoproject.com/en/dev/ref/ templates/builtins/?from=olddocs#autoescape) or mark it as safe by using the "safe" template filter tag (lower on the page). -- You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: query date by string

2010-12-03 Thread wayne
You should be able to do it just as you mention, passing the query string to cursor.execute(). See http://docs.djangoproject.com/en/dev/topics/db/sql/#executing-custom-sql-directly Have you tried this? Are you getting an error? If so, what is it? -- You received this message because you are

Re: how can I clean a form field before the clean method?

2010-12-03 Thread wayne
-only (and not use them to manipulate data). Wayne -- 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-user

Re: Load ForeignKey label instead of ID in Charfield

2010-12-02 Thread wayne
Well, I'm guessing that what is displayed is what the unicode method returns for the model that the ForeignKey points to (can't remember for sure offhand, but I know that the admin interface works that way). Of course, it might also be changing the display because you're putting it in a TextField

Re: Process UploadedFile with PIL on-the-fly

2010-12-02 Thread wayne
On Dec 2, 4:40 am, muzhig wrote: > Hi! I need to resize and make a stamp on uploaded images and only then > save a model. > I have a procedure, that processes incoming File: > > def processUploadedImage(file): >         img = Image.open(file) >         downsampleUploadedimage(img) >         stampU

Re: Records detected by admin site, but not displayed?

2010-12-02 Thread wayne
On Dec 2, 8:15 am, Sithembewena Lloyd Dube wrote: > Hi all, > > I have an admin site enabled for my Django project. For some reason, some > records are no longer displayed (they were displayed just fine before). > > Tried restarting the dev server to no avail. > > Please see the attached screen du

Re: Load ForeignKey label instead of ID in Charfield

2010-12-02 Thread wayne
bel instead of the ID when editing an > entry ? > > Thank you So, let me get this straight--you have a ForeignKey from one model to another, and you are editing that field by letting users enter text? If so, why? You should be using some type of choice field. Wayne -- You received this me

Using locales 'en-au' 'en-ca' 'en-nz' and 'en-za' in Django

2010-11-13 Thread Wayne Merry
y, how does one go about adding these languages to the core. en-au and en-nz can essentially be a copy of en-gb. Regards, Wayne -- 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...@googleg

Re: 'unicode' object has no attribute '_committed'

2010-08-10 Thread wayne
What is the code that you are using to save instances of the model with? -- 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-us

Re: 'unicode' object has no attribute '_committed'

2010-08-10 Thread wayne
are trying to access. Problem is, the unicode string does not have this particular value/method. That's what I'm guessing without seeing the code, anyway. Wayne -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Custom CheckboxSelectMultiple Widget that holds state

2010-08-10 Thread wayne
ar to be doing. HTH, Wayne On Aug 10, 11:07 am, vcarney wrote: > I've got a form with a multi checkbox that contains static choices. > Using the forms.MultipleChoiceField with the CheckboxSelectMultiple > widget worked fine for display. However, when displaying an edit form, > t

Re: add button to admin change list at row level.

2010-05-04 Thread Wayne
Thanks for your hint. It worked out pretty well. Wayne On May 2, 4:06 am, Daniel Roseman wrote: > On May 2, 4:29 am, Wayne wrote: > > > Hi, > > > We are trying to customize Django admin change list displaying model > > objects. We want to add two buttons (Change, del

Re: how to change urls for model in admin?

2010-05-04 Thread Wayne
hint, that would be great. Thanks, Wayne On May 4, 4:23 am, akonsu wrote: > hello, > > by default an admin url for a model looks like this: > > http:///admin///... > > is there a way to change it? for different models i need to have > different url structure. say, i want to

add button to admin change list at row level.

2010-05-01 Thread Wayne
me hint on this? The "list_display" can only take existing fields, but not the extra buttons we want to add, right? We do not want to provide user with batch admin actions option. That is why we want to add action to each row. Drop down actions menu is not our design preference. Thanks

Re: Using Mako as a templating language

2010-03-30 Thread Wayne Koorts
sing more and more on separation of concerns the templating became less and less of a problem. I eventually found that I was almost always better off (usually from a maintenance perspective) doing the things I felt I wanted to do in the templates further up the pipeline instead. -- Regards, Wayne

Re: charField null=false not enforced for table creation in oracle

2010-03-11 Thread Wayne
null condition in the oracle database by using syncdb? Currently, after creating those tables we need to manually modify the column properties in Oracle to make them not null. Or Django Oracle backend deliberately ignores null=false for charField creation? Wayne On Feb 26, 8:47 pm, Karen Tracey

Django GeoRSS syndication feed

2010-03-03 Thread Wayne Dyck
nk on exactly how to subclass the base class in order to add a lat and lon point. Wayne -- 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 grou

charField null=false not enforced for table creation in oracle

2010-02-26 Thread Wayne
lse is not enforced for charField? My Django version is 1.1.1, Python version is 2.6, and oracle server is 10g release 2. Many thanks for your help. Wayne -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

LDAP Authentication and Single Sign on

2010-02-18 Thread Wayne
packages Django can provide to realize our design? What is the best strategy for the development? Many thanks in advance for your help and time. Wayne -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: want to convert object to json data.

2010-02-08 Thread Wayne Koorts
opics/serialization/#topics-serialization Regards, Wayne -- 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+unsu

Date-based generic views - UTC handling

2010-02-07 Thread Wayne Dyck
"date" and "time" filters within the template itself, however, those are still UTC. Any pointers would be appreciated. Wayne -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

Re: Flat file application for binary data?

2010-02-05 Thread Wayne Koorts
means of > determining the filesystem storage location (including a method you can > define if you need to). > > ---Peter Herndon Note that you can do storage like /yy/mm/dd natively in Django without addons. -Wayne -- You received this message because you are subscribed to the Googl

Re: manytomany relations

2010-01-29 Thread Wayne Koorts
What do you mean by "top ten"? On 29/01/2010, at 20:53, CCC wrote: hi, I have two models:user,group,and they are manytomany, class User(model.Model): name = models.CharField(max_length=20) class Group(models.Model): name = models.CharField(max_length=20) users = models.ManytoMany

Re: LDAP-groups problem

2009-12-23 Thread Wayne
Hi, Many thanks for your reply. I did the test and it seemed that our network is working fine and I could telnet to the directory with "Connected" feedback. What other things we could try next? Wayne > > Ralf: $ telnet ldap.example.com 636 > Trying 1.2.3.4... > Connect

Re: LDAP-groups problem

2009-12-22 Thread Wayne
Thanks for the prompt reply. Yes, unique=True was the problem. Now I passed the "run syncdb" and new tables were created. However, I still could not "contact LDAP". Could somebody help me with this? There could be many reasons so I want to start with loggings for Django-LDAP- Groups. Thanks! My s

Re: Book

2009-12-22 Thread Wayne Koorts
pub.com/django-1-0-website-development-2nd-edition It's a great book and deserves to not be pirated. Regards, Wayne -- 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.c

Re: LDAP-groups problem

2009-12-18 Thread Wayne
Hi, Sorry for the late reply. Here is more info. Django Verstion: 1.1 Oracle Version:Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production cx_oracle for Python 2.6. Thanks for the help. Wayne On Dec 18, 10:26 am, Peter Herndon wrote: > On Dec 18, 2009, at 10:15 AM, Peter Hern

LDAP-groups problem

2009-12-17 Thread Wayne
Hi, I tried to use djando-ldap-groups but got some errors from database configuration. Could somebody shed some light on the possible problems of my set up? Thanks, Our LDAP server is Sun One Server and the site is running in the windows environment. The settings.py file: LDAP_SERVER = 'directo

Re: What apps do besides provide views?

2009-12-03 Thread Wayne Koorts
rtant part > of the app. Can anyone point out a section in the docs (or anywhere else actually) the Django "app" concept? I've had a look through the docs but haven't been able to find anything specifically about that. Regards, Wayne -- You received this message because you

Re: Inline admin objects question

2009-11-18 Thread Wayne
table A). There is no composite foreign key support in Django and the database can not be changed. Is there a way to still relate those two objects and display them in the Django provided inline admin interface? Wayne -- You received this message because you are subscribed to the Google Groups

Inline admin objects question

2009-11-18 Thread Wayne
Hi, I am working with a legacy database which does not set foreign key constraints at all between tables. I am wondering if I can still create Inline admin interface by relating two objects through different methods. If it is doable, what is the best way of doing it? Thanks, Wayne -- You

Re: Does anyone know what happened to djangopluggables.com?

2009-10-21 Thread Wayne Koorts
>> It's been giving me a "502 Bad Gateway >> nginx" for at least a couple weeks now. I've been seeing that for a few months now when trying to visit the site. Regards, Wayne --~--~-~--~~~---~--~~ You received this message because

Re: Django Developer Position in New York City, Urgent Stuff

2009-10-11 Thread Wayne Koorts
>> Please refrain from posting messages with this tone to the Django mailing >> lists. >> > I wholeheartedly agree. > The Django community has a good reputation. > Don't screw it up with your foul verbal attacks. Surely it should be grounds for

Re: list some django-powered web sites

2009-09-24 Thread Wayne Koorts
> hi everybody, We want to develop a Bussiness web site with Django framework, > but we can't decide django's performance. So, would you list some > large-scale web sites that used django for us? Define "large-scale". --~--~-~--~~~---~--~~ You received this messag

Re: Editors of choice

2009-09-07 Thread Wayne Koorts
> Anyhow, the purpose of this email was just to ask the community what > editor(s) they preferred to use with Django. Assuming you mean text editor: jEdit (www.jedit.org). Regards, Wayne --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Formwizard and subforms

2009-08-17 Thread Wayne Koorts
> Nobody can help me with this? If somebody: a) Has the answer and, b) Has the time and, c) The inclination to provide the answer, then they will do so. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: Anybody?? uber-newb question... installing django

2009-08-16 Thread Wayne Koorts
Hi Jon, The "python setup.py install" command copies the Django library files to your Python's lib\site-packages directory. You can safely remove the Django archive which you downloaded. Regards, Wayne 2009/8/17 Jonathan Zacsh : > > please, can anyone help me out?? &g

Re: how much python do i need to know to learn/use Django?

2009-08-14 Thread Wayne Koorts
en take a Django course with no Python experience then you might be able to get by. Regards, Wayne --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: Django/ Python 3 - nervous about starting large project

2009-08-06 Thread Wayne Koorts
Hi Tony, > @Wayne: Thanks for the welcome.  Why are you using 2.5 for your new/ > large project instead of 2.6? It just seems to be the "sweet spot" release at the moment. I just found that a few of the libraries I had been using, even in the last couple of months, had some

Re: Django/ Python 3 - nervous about starting large project

2009-08-05 Thread Wayne Koorts
require have mature 3.x releases) there are tools available to make the job a lot easier, like the 2to3 [2] script. [1] http://www.python.org/download/ [2] http://www.python.org/doc/2.6/library/2to3.html HTH, Regards, Wayne Koorts http://www.wkoorts.com --~--~-~--~~---

Re: Checking POST Variables are set?

2009-08-05 Thread Wayne Koorts
tead of this line: if request.POST['Lived_Out_Uk'] == '1': Use this: if 'Lived_Out_Uk' in request.POST: Regards, Wayne Koorts http://www.wkoorts.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: replicating database changes from one postgres DB to another

2009-07-21 Thread Wayne Koorts
quot; it just empties the pending table. These same general steps can be adjusted to accomodate more tables etc. as per your requirements. Hope this helps, Regards, Wayne Koorts http://www.wkoorts.com http://www.blazingpanther.com --~--~-~--~~~---~--~~ You receive

Re: New to unit testing, need advice

2009-07-15 Thread Wayne Koorts
ion is made to use that time for other things. As with anything, there's a balance. It's very dependant on the project and team involved. Regards, Wayne Koorts http://www.wkoorts.com --~--~-~--~~~---~--~~ You received this message because you are subs

  1   2   >