On 18/02/2010 9:38am, Jacek Furmankiewicz wrote:
We've had fairly good experience with Eclipse and the PyDev plugins
for it. Gives you even refactoring, which came in handy a few times.
I tried it and liked that but couldn't stick with it. My problem was
integrating subversion in a seamless w
sorry the last model was incorrectly pasted by me.
class Tag(models.Model):
# Content-object field
content_type = models.ForeignKey(ContentType,
verbose_name='content type',
related_name="content_type_set_for_%(class)s")
object_id = models.TextField('object ID')
content_object = generic.Generi
Hello,
I have a Tag model which has a Generic Foreign Key .
I want to order a query on the Tag model by fields in related models
(related via the Generic Foreign Key), for Example:
>>> [ o.content_object for o in
>>> Tag.objects.order_by('content_type__id','foo__name','bar__name') ]
Gives
Hi,
You probably want to recompile a couple of things -if not all- after you
upgraded to snow leopard from a previous version.
Default is now 64 bits instead of old 32bits, so this can cause some issues.
In your case, you may have some 32bits libraries and some 64bits.
I personally got rid of my
I'm having problems with PIL after upgrading to OSX 10.6.2 and was
wondering if anyone else had similar issues or found a fix. I'm
getting the error: The _imaging C module is not installed, so I tried
reinstalling PIL which resulted in the following error:
lipo: can't figure out the architecture t
Are there any how-to articles about using eclipse and python for beginners?
sent from the research lab at http://networksecuritynews.net
On Feb 17, 2010 7:39 PM, "Jacek Furmankiewicz" wrote:
We've had fairly good experience with Eclipse and the PyDev plugins
for it. Gives you even refactoring,
On 18 February 2010 10:49, Boris Schaeling wrote:
> Is it possible to make a model's properties available in a form which are
> created as described at
> http://www.djangoproject.com/documentation/models/properties/?
>
> For example the following model form does not display any widgets for
> full_
We've had fairly good experience with Eclipse and the PyDev plugins
for it. Gives you even refactoring, which came in handy a few times.
--
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...@googlegrou
We have a use where we need to limit access to particular *instances*
of objects.
It's not a simple case of add/delete/update permissions.
Let's say a sales rep has his 5 customer he is responsible.
In the customer admin he should only see those 5 and no others.
Also, in all other admin screens (e
We are redoing old legacy J2EE/Weblogic portals in Django,
so we're one of those shops that is dealing with a legacy DB (no
changes to the current schema are possible).
The lack of composite key support is really starting to kill us on a
few tables that we wanted to use via the Admin Inline interf
how about the RoR site serve authentications to the Django site over
Oauth?
unless if, as Tim's answer suggests, users don't want to log in twice?
and shouldn't the salt and hash pattern appear inside the auth contrib?
--
You received this message because you are subscribed to the Google Groups
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
DjangoGraphviz http://code.djangoproject.com/wiki/Dja
Is it possible to make a model's properties available in a form which are
created as described at
http://www.djangoproject.com/documentation/models/properties/?
For example the following model form does not display any widgets for
full_name and full_name2:
class PersonForm(forms.ModelForm
Emily provided an answer according to what she understood from the OP. No
harm in doing that, at least not worse than no attempt at giving a
solution..
I suspect this is more plausible than philosophising away all night.
On Thu, Feb 18, 2010 at 12:00 AM, bruno desthuilliers <
bruno.desthuilli...@
I have found the source of the problem. When running the built in dev
server, I used the command "python manage.py testserver". This command
seems to create a new database, with no user records, and run the
server using that. This means that loging in is impossible as there
are no users to log in a
Emily provided an answer according to what she understood from the OP. No
harm in doing that, at least not worse than no attempt at giving a
solution..
To me, this is more plausible than philosophising away all night.
Lloyd
On Thu, Feb 18, 2010 at 12:00 AM, bruno desthuilliers <
bruno.desthuilli
Emily provided an answer according to what she understood from the OP. No
harm in doing that, at least not worse than no attempt at giving a
solution..
I suspect this is more plausible than philosophising away all night.
On Thu, Feb 18, 2010 at 12:00 AM, bruno desthuilliers <
bruno.desthuilli...@
Emily provided an answer according to what she understood from the OP. No
harm in doing that, at least not worse than no attempt at giving a solution.
We have no interest in your personal coding style: attempt to help, or zip
your gob. Have had it with egomaniacs running loose..
Lloyd
On Thu, Fe
Emily provided an answer according to what she understood from the OP. No
harm in doing that, at least not worse than no attempt at giving a
solution..
I suspect this is more plausible than philosophising away all night.
On Thu, Feb 18, 2010 at 12:00 AM, bruno desthuilliers <
bruno.desthuilli...@
Emily provided an answer according to what she understood from the OP. No
harm in doing that, at least not worse than no attempt at giving a
solution..
I think that people who have a problem with posts, even vague ones, should
stay away from them - let those that would try to help, to do so
unhind
Whoops. I figured it out. Even though the user is None, it is failing the
form.is_valid() check and so skipping the if statements. So I just need to
include an else clause for the form.is_valid() check to catch the blank
password situation.
Here's hoping this helps someone else.
On Wed, Feb 17, 2
Is it possible to transfer the valid session from Django to RoR? I'm not
really sure if that makes sense, but it's what comes to mind. Basically, if
you have already authenticated on one framework you should be able to pass
along the authentication without having to copy the password over.
FWIW
O
I am using a basic authentication/login scheme in Django 1.1.1 and
Python 2.5.3. It behaves correctly if I login correctly, or if I use
use a correct username but wrong password. It also works for an
unknown username AND any password. However, if I type in a username
that is not in the database wit
Emily provided an answer according to what she understood from the OP. No
harm in doing that, at least not worse than no attempt at giving a
solution..
This is not a parade for anyone's personal coding style: attempt to help, or
stay away.
Lloyd
On Wed, Feb 17, 2010 at 1:20 PM, bruno desthuillie
On Wed, Feb 17, 2010 at 5:43 PM, Phlip wrote:
> Djangoids:
>
> As Django apps get bigger, the odds that some contributed test cases
> fail go up.
>
> (They fail for environmental reasons, and if nobody is changing their
> code at your site, then their test failures are less relevant!)
>
> How can
Hello all,
Internally, we have some RoR apps and Django apps. Our main website
runs on Django and is considered to be the main portal for all other
apps. Currently, we have a Rails authentication system and a Django
authentication system. We want to have one user table to authorize
against.
The o
On 17 fév, 17:29, Emily Rodgers
wrote:
> As I said, we aren't doing his coding for him,
And as I said, this is _not_ the problem. I don't mind providing
working code as an answer, and did it on quite a few occasions during
the past 10 years or so, on various newsgroups and mailing lists. But
c
On 17 fév, 20:39, Joel Stransky wrote:
> Ok thanks. I never actually tried it, just assumed it wouldn't work. I'll
> give it a shot next time I run into this.
>
FWIW, your current solution is IMHO way cleaner (=> more readable,
more explicit, and less likely to break if / when something changes
On 2010-02-17, at 12:43 PM, Phlip wrote:
> Djangoids:
>
> As Django apps get bigger, the odds that some contributed test cases
> fail go up.
>
> (They fail for environmental reasons, and if nobody is changing their
> code at your site, then their test failures are less relevant!)
>
> How can I
If so, could you provide a bullet list of things you preferred in
Django? Thanks.
--
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
Hey everyone, I have startup up in Seattle that is unlocking meaning from
text on the web.
We're looking to hire a contractor (or full-time person) to code up our
front-end. This will entail Django and AJAX (and a little jQuery), but this
person does NOT have to know CSS, etc.
Also giving a
Djangoids:
As Django apps get bigger, the odds that some contributed test cases
fail go up.
(They fail for environmental reasons, and if nobody is changing their
code at your site, then their test failures are less relevant!)
How can I knock out a list of apps from the test command line?
I am t
Hi there,
I am having a problem using the OpenLayers mapping widget for a GIS
point field.
I have a model called Locality that has a point field called
"coordinates." I set the value of that field using the following
format: POINT(LAT, LNG).
For example, for Atlanta, GA, the value of the coordi
Ok thanks. I never actually tried it, just assumed it wouldn't work. I'll
give it a shot next time I run into this.
On Wed, Feb 17, 2010 at 3:49 AM, bruno desthuilliers <
bruno.desthuilli...@gmail.com> wrote:
>
>
> On Feb 16, 10:50 pm, Joel Stransky wrote:
> > That was my first thought too David
Good to know. Thanks.
On Wed, Feb 17, 2010 at 3:44 AM, bruno desthuilliers <
bruno.desthuilli...@gmail.com> wrote:
> On Feb 16, 10:57 pm, Joel Stransky wrote:
> > The problem is that if I load the tag inside base via {% load
> my_custom_tag
> > %} it breaks but if I include that line inside main
I have an unusual Django application. I was wondering if someone could
offer advice to the best way to handle a requirement. This isn't a
standard application (and might not even seem like a good use of
Django, but that's beside the point.)
Redhat, Python 2.4, Django 1.1, mod_wsgi.
In a view, I n
you can try gmail to test too
http://ltslashgt.com/2007/07/02/gmail-and-django/
On Feb 17, 9:38 am, Marco Rogers wrote:
> Check out this solution for testing emails when in development. It
> allows you to use send_mail and the email output is printed to the
> terminal (the one running the run
i just added a csv export as an admin action from details here
django csv
http://docs.djangoproject.com/en/1.1/howto/outputting-csv/#howto-outputting-csv
admin actions
http://docs.djangoproject.com/en/1.1/ref/contrib/admin/actions/#ref-contrib-admin-actions
On Feb 17, 7:49 am, Shawn Milochik
On Feb 17, 11:20 am, bruno desthuilliers
wrote:
> On Feb 17, 10:12 am, Emily Rodgers
> wrote:> On Feb 16, 4:50 pm, bruno desthuilliers
> > > I'm afraid I don't really get what difference it would make. Note that
> > > my question was genuine - I know zilch about the problem domain, I
> > > don'
On Wed, Feb 17, 2010 at 3:12 PM, gintare wrote:
>
> One more simple question:
>
> Is it possible that area which is used for data submission also can be
> updated from python script.
>
It's not clear what you mean by this. The python (Django) script isn't
running in the webbrowser, so it can't
Thanks for your help, I figured out in the end what was causing the
problem.
Because there was a problem with Spawning crashing and not properly
restarting when using more than 0 threads, we had set the number of
threads to 0. However this appeared to cause the e-mail sending
problem. We set the nu
Check out this solution for testing emails when in development. It
allows you to use send_mail and the email output is printed to the
terminal (the one running the runserver process).
http://jboxer.com/2009/05/non-painful-email-on-django-development-servers/
When you're ready to go live, you'll
Hello,
One more simple question:
Is it possible that area which is used for data submission also can be
updated from python script.
How in *.html describe that input can be both
from the user
and a result of some script.
1
On line 1 user put a word
On line 2 user start search in database
Anybody? :)
On Feb 17, 1:19 am, kkerbel wrote:
> I'm having trouble getting AdminDateWidget to show in a formset. Is
> this possible? I've read and followed every post that mentions how to
> do this and I even have a page working with the AdminDateWidget,
> however, it uses a regular form and
Note: Your "novice Django skills" are irrelevant -- working with CSV files in
Django is nothing more than Python. Just check out the docs and examples on the
Python CSV module. You'll enjoy working with Python (and Django) a lot more if
you take the time to read a book or two, do tutorials, and
@@in views.py i am making search in database:
def search1(request):
#..
results = EntryD.objects.filter(qset).values_list('fwordE')
#
return render_to_response("diction.html", {
"results": results,
"query": query
})
@@in *.html
@@using li
I would do it straight from the database.
You can use mysqldump (If using mysql) to output a csv file. Any other
major database I know of can dump to csv.
Generic SQL to do it:
SELECT * INTO OUTFILE 'export.csv' FIELDS TERMINATED BY ',' OPTIONALLY
ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM table
On 17/02/10 08:53, bruno desthuilliers wrote:
user.get_profile().student.student_number or
user.get_profile().teacher.gender - but it works.
I'm becoming pretty vague on what advantage the userprofile mechanism
offers over other one to one fields to User. Is it just a convention at
this stag
Great! Thanks a lot!
On Feb 11, 6:22 pm, Karen Tracey wrote:
> On Thu, Feb 11, 2010 at 12:28 PM, Gabriel . wrote:
> > On Thu, Feb 11, 2010 at 2:23 PM, Cheet wrote:
> > > Hello,
>
> > > Any one know the diffs between these versions?
> > >http://docs.djangoproject.com/en/1.1/releases/#releases-in
Sounds pretty straight forward. gonna try it out.
Thanks!
On 17 feb, 09:53, bruno desthuilliers
wrote:
> On Feb 16, 3:13 pm, Sander wrote:
>
>
>
> > Hello everybody,
>
> > I'm kinda new to Django, and just finished reading the Django book.
> > Now I was wondering the following when it comes t
On Wednesday 17 February 2010 03:28:35 bruno desthuilliers wrote:
> On Feb 17, 10:08 am, Mike Ramirez wrote:
> > On Wednesday 17 February 2010 00:56:55 bruno desthuilliers wrote:
> > > On Feb 16, 7:35 pm, Mike Ramirez wrote:
> > > > On Tuesday 16 February 2010 10:24:46 Baurzhan Ismagulov wrote:
>
On Feb 17, 10:08 am, Mike Ramirez wrote:
> On Wednesday 17 February 2010 00:56:55 bruno desthuilliers wrote:
>
> > On Feb 16, 7:35 pm, Mike Ramirez wrote:
> > > On Tuesday 16 February 2010 10:24:46 Baurzhan Ismagulov wrote:
> > > > This is very impractical to implement with pure browser + HTTP.
>
hi
I am learning the use of Forms and tried populating a form from an
instance.Here I encountered a problem.
I have a class Lecture which can belong to diff subjects.So I created
a field 'subjects' in Lecture to be a ManyToManyField.
For example,
Lecture1 -data structures,algorithms
Lecture2 -data
On Feb 17, 10:12 am, Emily Rodgers
wrote:
> On Feb 16, 4:50 pm, bruno desthuilliers
> > I'm afraid I don't really get what difference it would make. Note that
> > my question was genuine - I know zilch about the problem domain, I
> > don't have the fisrt clue about what an "Alliance" might be, so
Hi,
Is it possible to override the default widgets generated by an
inlineformset_factory?
I have a couple of models and an inlineformset_factory to generate a
form for the "child" of the pair - which is all well and good, but the
text fields that it produces are too large to fit on the screen.
Su
this doesnt seem a django problem but a failure in the connection to the
mailserver.
check your email setup in your settings.py
danin wrote:
> hi guys,
> I am new to Django. I am working on mini project where i
> need to send some mail , i used the send_mail but i m not able to send
> an
On Wednesday 17 Feb 2010 4:24:27 pm danin wrote:
> I am new to Django. I am working on mini project where i
> need to send some mail , i used the send_mail but i m not able to send
> any mails. I m gettinf errors like -
> (111, 'Connection refused')
>
you do not have a mail server runni
hi guys,
I am new to Django. I am working on mini project where i
need to send some mail , i used the send_mail but i m not able to send
any mails. I m gettinf errors like -
(111, 'Connection refused')
Thanks
--
You received this message because you are subscribed to the Google
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
Hi,
Actually my aim is to load the iframe when i click my link(play) in
facebook. i get the functionality working fine but the problem is after
loading the iframe with desired content, it becomes blur.. I dont know what
the problem is. please see the bellow screen short .
After clocking the play
On Feb 16, 4:50 pm, bruno desthuilliers
wrote:
> On Feb 16, 4:54 pm, Emily Rodgers
> wrote:
>
>
>
> > On Feb 16, 3:39 pm, bruno desthuilliers
>
> > wrote:
> > > On Feb 16, 2:56 pm, Derek wrote:
> > [snip]
> > > Ain't that "memberships" relationship redundant with passenger->flight-
>
> > > >o
On Wednesday 17 February 2010 00:56:55 bruno desthuilliers wrote:
> On Feb 16, 7:35 pm, Mike Ramirez wrote:
> > On Tuesday 16 February 2010 10:24:46 Baurzhan Ismagulov wrote:
> > > This is very impractical to implement with pure browser + HTTP.
> >
> > Take a look at eyeos. http://eyeos.org/ PHP+
Hi I have a quick question.
I am currently using django-survey and was wondering if there is any
way of downloading the results into a CSV format. It is a nice app but
the download function is surely very important.
Another way I though of was to write the results to CSV myself with
csv writer bu
On Feb 16, 7:35 pm, Mike Ramirez wrote:
> On Tuesday 16 February 2010 10:24:46 Baurzhan Ismagulov wrote:
>
> > This is very impractical to implement with pure browser + HTTP.
>
> Take a look at eyeos. http://eyeos.org/ PHP+Javascript...
Definitly not the same thing. eyeos doesn't access the user
On Feb 16, 3:13 pm, Sander wrote:
> Hello everybody,
>
> I'm kinda new to Django, and just finished reading the Django book.
> Now I was wondering the following when it comes to user management.
>
> In the Django documentation I found that storing additional
> information is acomplished by writing
On Feb 16, 10:50 pm, Joel Stransky wrote:
> That was my first thought too David but the %} both closes the js method
> declaration and causes a syntax error.
It shouldn't - unless you try to display the unrendered template in
your browser, of course.
--
You received this message because you a
On Feb 16, 10:57 pm, Joel Stransky wrote:
> The problem is that if I load the tag inside base via {% load my_custom_tag
> %} it breaks but if I include that line inside mainContent, it works. My
> goal here was to load all custom tags in the base so that I'd never have to
> load them again but cou
On Feb 17, 1:07 am, justin jools wrote:
> I solved it after playing around for 3 hours it came to me: compare
> the make.id to model.dbforeignkey.id
Reading the FineManual(tm) would have saved you a lot of time...
{% for make in make_list %}
{{ make.name }}
{% for
In django/contrib/contenttypes/models.py (get_for_model), I noticed
that for a proxy model object, the contenttype being returned is of
the base concrete class since it sets opts to the _meta of
proxy_for_model . If one uses a generic relation in the admin app,
you can set the generic contenttype
69 matches
Mail list logo