On 2 March 2010 14:11, hcarvalhoalves wrote:
> Sorry, I just saw Twitpic's documentation now [1].
>
> What I can say, is that their implementation is a joke.
>
It's not that simple. Twitpic is usually used by 3rd party programs - not
directly. So for example with Tweetdeck, if they wanted to int
You may find this thread of django-developers interesting; "What The
Enterprise wants from Django"
http://groups.google.com/group/django-developers/browse_frm/thread/c89e028a536514d3
It's a discussion about some of the things that Django is missing that
the enterprise wants/needs - the good news
On 22 February 2010 11:56, Aljosa Mohorovic wrote:
> what are security concerns if username is allowed to contain chars
> like ".,;-() " and non-ascii alphabet letters?
> will orm still properly escape string before querying the database?
>
> Aljosa
>
>
In short, yes it will. All strings passed th
On 19 February 2010 10:27, Paul Stone wrote:
> > > That's fine for one or two models. But what if I want to do this for a
> > > number of models, in every view? What's the best way to do that
> > > without code repetition?
> >
> > Using a ModelForm?
> >
> > http://docs.djangoproject.com/en/dev/to
On 19 February 2010 09:28, Paul Stone wrote:
>
> > Presumably you have a view which is updating this object. The view has
> > access to the HttpRequest. Therefore, the easy, simple, clean and
> > elegant way is... to have the view set the value of that field. So do
> > that and ignore anyone who
On 18 February 2010 00:03, snfctech wrote:
> I just built a complicated schema with MySQL workbench and am looking
> at Python frameworks to start implementation.
>
> Does anybody in the Django community do this? What's your practice
> for going back and forth between the ERD and the ORM? I saw
The django-developers mailing list is for the discussion about
the development of django itself, not using django.
Please use the django-users mailing list and don't cross post between the
two.
Dougal
On 17 February 2010 09:26, chiranjeevi muttoju <
chiranjeevi.mutt...@gmail.com> wrote:
>
> H
I think the answer to that is probably "it depends".
1. Permanent or contractor?
2. What country?
3. Often it even matters what city?
4. How much experience do they have?
It's probably best for you to look at job adverts and see what they are
offering. Some listings on http://djangogi
In a shameless plug, you could try your hand at doing some testing with
django. This follows on from the tutorial.
http://dougalmatthews.com/articles/2010/jan/20/testing-your-first-django-app/
Otherwise... I'd just read the Django docs - they are fantastic.
Read what people post here; http://www.
model.objects.annotate(Max('handicap')).order_by('-handicap__max')
I think something like that does what you need.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2010/1/25 Kenneth Gonsalves
> hi,
>
> I have a model 'Player' and
If you look at the tests in django-shorturls you can see how they created
models that were only used for the tests:
http://github.com/jacobian/django-shorturls/tree/master/src/shorturls/tests/
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2010/1/22 Gabriel Reis
> Hi,
&g
2010/1/18 dk
>
> Is there a way to do what I'm trying?
>
>
As a totally shameless plug I wrote about this fairly recently;
http://dougalmatthews.com/articles/2009/dec/16/nicer-dynamic-forms-django/
I don't quite do the step of the database but show how one can create a form
on the fly - it could
If you want your app to be shipped individually and re-used then you
shouldn't use the project name. If you make a reusable app and release it
then I want to use it, I don't want to have to include the project
namespace, i just want the app.
However, its your shipping the project as a whole then i
2010/1/2 Raja
> IMO, it would be useful if we get standard templates for django
> libraries that are out there, like django-registration, django-
> profiles etc. Since the library offers the models and views, it would
> be helpful if the templates are also available. The developer could
> then ta
.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
--
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
dj
2009/10/31 shacker
>
> Things like the announcement that
> whitehouse.gov switched to Drupal just cement the deal in many
> managers' minds.
>
>
I can't find the source for this (the original tweeter has protected tweets)
but if true its an interesting stat.
http://twitter.com/pydanny/status/526
/2009, martin f krafft wrote:
> also sprach Dougal Matthews [2009.05.23.1103 +0200]:
>> I don't think tagging is a particularly hard or non-trivial.
>
> No. All the more reason to push for a standard and prevent dozens
> of different implementations, no?
>
>> Anyway,
s very
minimal to the developer that uses it.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/5/23 Kai Kuehne
>
> Hi,
>
> On Fri, May 22, 2009 at 11:52 PM, Dougal Matthews
> wrote:
> > Pretty must everybody does seem to use django-tagging unless
It doesn't. Why should it?
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/5/22 martin f krafft
> also sprach Dougal Matthews [2009.05.22.2352 +0200]:
> > Pretty must everybody does seem to use django-tagging unless they have
> some
> > special weird
Pretty must everybody does seem to use django-tagging unless they have some
special weird use-case.
I've used it every time I've needed tagging and don't have a gripe with it
yet.
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/5/22 martin f
moment, with 0.7
coming soon. I think there will then be migration/upgrade support from then
onwards. I believe its coming but not sure what stage it kicks in.
Pinax includes a huge number of apps, like django-tagging and more are being
added.
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http
with Django though. However, check out
django-piston - it my help.
http://bitbucket.org/jespern/django-piston/wiki/Home
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/5/22 googletorp
>
> Hi
> AJAX doesn't care what tech is serving the data as long
wnload.
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/5/21 online
>
> So i have to install svn on mymachine? Why people make download so
> complicated...
>
>
>
>
>
>
> On May 20, 10:22 pm, jai wrote:
> > svn checkoutht
good idea to make a copy on github and interested people
will watch/fork etc.
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/5/17 AE :
>
> Hi
>
> I have looked enough and failed to identify anything that solves or
> like "SaaS railskit"
27;t stop you having your own template tag that
allows it. Or using this one that is on djangosnippets;
http://www.djangosnippets.org/snippets/1350/
This is the same all the way up to django 1.1
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/5/13 richardc
Alex Gaynors talk at EuroDjangoCon will probably help you out with
some handy Form tips. The slides are here;
http://lazypython.blogspot.com/2009/05/eurodjangocon-2009.html
The video should be online somewhere at some point.
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http
pyDev and Wing IDE - I swap between them for a reason I can't quite fathom.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/5/13 Gath :
>
> I use pyDev for eclipse, i think its the best debugger for Python/
> Django.
>
> Gath
>
> On May 1
Why not use django.contrib.auth and only allow super users to access said
pages?
Or use django's permission system?
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/5/11 andrew
>
> Hi,all
>
>I'm designing a series of admin pages that only
This might be useful;
http://docs.djangoproject.com/en/dev/howto/legacy-databases/
It describes how to create models for your existing databases. However, it
wont stop you being able to make writes with the django ORM.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009
ually going to SMS
I think the more hooks django gives you into replacing/customising like this
the better. I might go and see how hard it would be to patch...
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/5/10 Will Hardy
>
> The test runner doe
>From the docs;
"Variable names must consist of any letter (A-Z), any digit (0-9), an
underscore or a dot."
http://docs.djangoproject.com/en/dev/ref/templates/api/#rendering-a-context
I suppose you could write a template tag to handle it or something. Not
sure.
Dougal
---
Do
nerated from my models.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4/23 Dennis Schmidt
>
> Hi there,
>
> I need to dynamically create complex forms in my application. Since
> version 1.0 django has these form wizards, which can manage complex
>
in #1 I think you meant;
user.save()
staff = Staff()
staff.user = user
staff.save()
That might work. Otherwise, I'm not sire.
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4/21 Joshua Partogi
>
> Darn,
>
> It's really difficul
dding to the user object is here;
http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users
You might find that way easier.
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4/20 Joshua Partogi :
>
> Dear all,
&g
why don't you just access entry.author rather than entry.user?
I think perhaps I'm not quite following your question.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4/20 Bastien
>
> Hi,
>
> I searched the doc but couldn't find anything a
Probably best to ask @djangocon or @robertlofthouse on twitter.
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4/20 Aljosa Mohorovic :
>
> anybody has any information about possible euro djangocon talks?
> or any idea when will talks schedule be
Why do you want to change the User model?
This might be a useful read for you if you want to store more info about a
user...
http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4
It depends how you mean combine really. You can have them both running on
the same server, you can have them share the same database (then you can
still manage it with django)
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4/5 atik
>
> Ok. Again Thanks. I w
#x27;s the case then you will want to decide how you are going to pass
data. You can then just make your views return the appropriate data, be that
chunks of HTML, JSON or XML etc.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4/2 Gath
>
> All,
>
> I ha
Daniel and everybody else can see my reply like I can see your reply to him
;)
Just so you know you don't need to reply to each of us individually...
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4/2 Loewe, Rosemarie
> Hello Daniel,
>
> just I
You error is in urls.py
You have; *include('mysite/polls/urls')),*
you should have; *include('mysite.polls.urls')),*
The path is written python module style (with dots) rather than directory
style (with slashes)
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatth
It depends what data your fetching I suppose but you might just want to use
urllib?
JavaScript triggers a view that makes a request to the remote server and
outputs the result to your javascript.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4/1 Albert
>
>
Why do you want to change the request object? Why are you trying to store a
user object? Perhaps you want to store it in a session?
I think you should explain what you are trying to do.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/31 Masarliev
>
> yes it
Django uses an ORM - so you don't (usually) need to query the database
directly.
Why don't you go through the Django tutorial and try it out?
http://docs.djangoproject.com/en/dev/#first-steps
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/31 D
spend
all your time working on the website itself rather than repeating (or self
maintaining) the building blocks.
I moved over from PHP and haven't looked back.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/31 Dotan Cohen
>
> I have been writing w
I think you are looking for get()
facilityList = Facility.objects.get(name = facilityName)
http://docs.djangoproject.com/en/dev/topics/db/queries/#field-lookups
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/30 famousactress :
>
> Hello folks. I
Your not giving us anything to go on here. How far do you get? do you
get any errors?
I am assuming you followed the very detailed instructions here;
http://docs.djangoproject.com/en/dev/topics/install/#topics-install
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com
Isn't it just because you don't have quotes around the image address?
background: url('/site_media/header_background.gif') no-repeat top left;
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/27 Brian Neal :
>
> On Mar 27, 7:33 am, Gath
I've never actually tried this but i often hear it mentioned. It may
do what you need (or at least, help)...
http://code.google.com/p/google-app-engine-django/
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/25 cgarvey :
>
> Hi,
>
> Does anyon
You might find this useful. It's an app aimed at google map usage with django.
http://code.google.com/p/django-googlemap/
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/20 Alessandro :
>
> On Fri, Mar 20, 2009 at 3:23 AM, Andy Mckay wrote:
>&g
If you just want to store the location you could just store the address or
latitude and longatude in the model? I think GeoDjango has way more than
you'll need unless your missing out some features...
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/18 Viktor
http://www.google.co.uk/search?q=django+extending+user (granted, lots of it
is old)
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/17 ntoll
>
> Guys,
>
> Asking for advice here.
>
> What is the best way to extend the User class in
> django.con
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/17 Andrew Turner
>
> 2009/3/17 P M :
> > why don't you use
> > ABSOLUTE_URL_OVERRIDES = {
> >'auth.user': lambda o: "/user/%s/" % o.username,
> > }
>
http://123.123.123.123/xd_reciever/ ? However, you will need to make the
django dev server viewable externally (other than from the localhost) - I'm
not sure how/if you can do that.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/17 Roboto
>
> Hey guys,
>
Indeed, the admin doesn't really enforce this. The admin is for trusted
users and thus the filter just helps people out but isn't for security.
You would be better building your custom admin I think. If you start using
model forms etc. its not really that hard.
Dougal
---
Douga
they edited. I wrote an example of
that here;
http://blog.dougalmatthews.com/2008/10/filter-the-django-modeladmin-set/
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/17 Bro
>
> Hi,
>
> I am using the User model with additional information. This model is
It means another program is using the port you are trying to use. Do you
have another server running? or skype by any chance?
If you can still view the website in the browser, its not a problem. If you
can't you should use another port or close the program using the same port.
Dougal
---
D
aware of is it messes up some tags, like and
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/16 Benjamin Buch
>
> Thank you for your replies!
>
> What I essentially want to do is:
> 1: Keep the template output readable for the frontend coder I&
I think these are the relevant docs you need;
http://docs.djangoproject.com/en/dev/topics/db/queries/#related-objects
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/16 bax...@gretschpages.com
>
> In my model, I've got
>
>sites = models.Man
That looks very cool for me and quite useful but I don't think the
django-googlemap supports the DMS format.
Also its not Django 1.0 ready.
Sergio, Don't you just want to create a custom field with a regular
expression validator for DMS?
Dougal
---
Dougal Matthews - @d
Correct, basically as long as Python can access it your all good. Just put
it somewhere that makes sense.
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/15 Joshua Partogi
>
> Thanks Doug.
>
> I kinda get the gist now. It seems that template is parse
Hi,
I've used a similar approach once - works fine. Although, you might want to
sacrifice such a short url for something that is easier to read/understand
that 'u' and 'g'.
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/15 ldm9
Something like this might be able to help you?
http://www.davidcramer.net/code/369/spaceless-html-in-django.html
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/15 Benjamin Buch
>
> Hi,
>
> is there a way to tighten up the output that Django renders?
You can put them where you want but generally they go inside the application
folder that uses that template.
You may find this an interesting/helpful read;
http://www.djangobook.com/en/2.0/chapter04/
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/14 Joshua
OH yeah, Make sure you look at the cms2 branch in SVN. It's wy
better!<http://trac.django-cms.org/trac/browser/branches/django-cms2>
http://trac.django-cms.org/trac/browser/branches/django-cms2
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3
rstand the
> readability argument I don't know if it's a good idea technically
> speaking. Any help, point of view, documentation, already exisiting
> app would be welcome.
>
> Thanks
>
> >
>
--
Sent from my mobile device
---
Dougal Matthews - @d0ugal
h
66 matches
Mail list logo