On Nov 20, 1:30 pm, Justin <[EMAIL PROTECTED]> wrote:
> We want to use email addresses as our site's login username, not just
> as an alternative authentication method. I figured a quick way to do
> this would be just changing the auth user model's username field to an
> EmailField instead of a
A few people including myself are working on:
http://www.bitbucket.org/bkerr/django-textmate-bundles/
I really hope to get some time to really get it going in the next week
so we can officially announce it. We are definitely looking for more
eyes and recommendations on the project. If you want to
On Aug 31, 11:14 am, "Vadivel Kumar" <[EMAIL PROTECTED]> wrote:
> I know this might sound very newbie .. its true
>
> How can i assign an exising record of the child table to an parent record.
> For example I have two models,
>
> class User (models.Model):
> ... all other fields ...
>
Kurczak;
Short of this is, catching specific errors in the save method and
displaying them to the user are hard and you might be regurgitating
items back to the user that they really don't have any business seeing
(SQL errors, programming errors, etc.). The best way to check for the
proper values
It's even easier than that: try user_profile.name
if you need a specific variable field, remember it is just python so:
>> from Model.models import Profile
>> user_profile = Profile.objects.get(pk=1)
>> attribute = 'name'
>> getattr(user_profile, attribute)
John
Hope that helps, Mn
On Oct 2, 1
Using cmemcache .95 I am getting the following errors in the apache
logs:
[fa...@1233073307.022758] mcm_fetch_cmd():1156: memcache(4) protocol
error: protocol, expected a response
[fa...@1233073307.030416] mcm_get_line():1544: memcache(4) protocol
error: no \r before \n
It seems to be occurring
On Jan 27, 4:52 pm, Matthias Julius wrote:
> mvtango writes:
> > my users keep several browser windows open in my application, I need
> > to keep session information for all these windows separate. But I have
> > only one session object - modifying it while the user works in window
> > A and w
On Feb 9, 3:54 am, Praveen wrote:
> hi i have one form inside the form
>
> method="POST" onSubmit="javascript:self.close();">
> {% for name in eventname %}
>
> {{ name.title }}
>
> {{ name.address }}
> {{ name.summary }}
> style='display:none'>
> {{ name.title }}
>
> Hi all,
>
> I'm new in this group and I have to say that my English is very poor
> so sorry.
Welcome to the group!
> I've the follow problem, I want to put in one of my base templates
> (that it's include in main base template) a list of one model, for
> example a Category model that has a rel
rward to seeing you tomorrow,
Michael Newman
1) http://www.yelp.com/biz/primo-coffee-house-ann-arbor
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
Hello;
On Apr 7, 4:55 pm, Social Network in DJango
wrote:
> I'm interested in activating a click-wrap license, similar to what you
> get when you install a new program or package, on a pc or osx.
So to get this straight, you want to greet a user with a pr0n style
'enter here only if you agree'
On Apr 8, 2:31 pm, Rit wrote:
> I'm working on url pattern helper app; design to eliminate the need to
> edit the "urls.py" file more only once. I need inputs and pointers on
> what is best to approach this.
>
> here is the detail:
>
> http://code.google.com/p/django-durl/
This is an interesting
On Apr 9, 4:59 pm, "saved...@gmail.com" wrote:
> I have been working on an question/answer app that embeds a video
> along with the question. If the user answers the question correctly,
> then the app redirects to the next question/video. Would the best
> practice be to embed the video using a
On May 2, 2009, at 1:58 PM, zayatzz wrote:
>
> No matter. i figured out the cause, but now i have different how...
> not one suitable for this thread
>>
>>
>>
>>
>>
>>
Alan;
Glad you got it figured out. It would be helpful to the people who
might be of will be following this thread to hear
On May 5, 2009, at 6:07 AM, Lame Spirale wrote:
>
> I'm glad nobody is too upset about this :/
> I can't even use the framework, and i spent 2 weeks on it
> Why isn't there any error message ?
> Why doesn't it even DO something ? It's just un putain de submit
> button ! (i feel more confortable
Just a quick question that might be an easy answer but I am curious.
Why is it that in the URL dispatcher all the direct to views use the
first argument in urlpatterns but when we use include it doesn't
matter? Example:
urlpatterns = patterns('myapp.views',
(r'^foo', include('myapp.foo.urls')
Is there anyway to change the order that the urls are checked? For
example I have an about us page that is generated by a url conf. I
want my designer to make his own about us page with flatpages and
therefore 'overwrite' the url that is autogenerated. I know right now
flatpages checks the url aft
I am trying this new way of inheriting a lot of information for a
project I am working on. This site I need to extend the user profile,
then certain people can have their own sites and then those sites can
have 10 photographs to add to a slide show.
so I have:
exampleapp.py
-- models.py
class P
Reality is 19 apache processes isn't that much. That means there are
only about 19 requests on your server at one time. So what that means
is that either your server is whoafully unprepared for the real world,
or what is being done with your processes is really heavy, like file
uploading or proces
for a while.
On Feb 6, 10:17 pm, Aaron Fay <[EMAIL PROTECTED]> wrote:
> Hey Michael,
>
> I ran across this article a couple days ago that seems to have a
> workaround to your problem:
>
> http://scottbarnham.com/blog/2007/08/22/edit-inline-with-imagefield-o...
>
> H
erCreationForm
Any one who has any insight as to what this error means or experience
with django-registration in newforms admin and would care to share it,
I would be very grateful. I found this ticket
http://code.djangoproject.com/ticket/6572
, but I assume it is my code and not a bug. Thanks in ad
you on your way, This was one of the hardest parts
for me switching from blog applications like wordpress to Django, but
once you develop a system it will last forever and be considerably
more flexible.
Michael Newman
On Feb 13, 4:31 am, Florian Lindner <[EMAIL PROTECTED]> wrote:
> Hello,
The problem is you are filtering the video attribute of your articles
and thus returning 3. Try Article.objects.filter(video=True) I think
that should work.
On Feb 13, 7:04 am, Martin <[EMAIL PROTECTED]> wrote:
> hello,
>
> i'm struggling with ManyToMany fields (Rajesh helped me a lot;) and
> hav
would it be time well spent?
On Feb 12, 11:41 pm, Michael Newman <[EMAIL PROTECTED]> wrote:
> It took a couple of days, but I finally got all my projects switched
> to new forms admin. It is so powerful. I cannot wait to see wait to
> see what kinds of things I will be ablt to accom
project.com/documentation/authentication/
Hope that helps, Michael Newman
On Feb 13, 3:17 pm, dall <[EMAIL PROTECTED]> wrote:
> Why in User.objects.create_user(user name, email, password)
>
> I can`t add more data, like birthday, las
Hey Jonathan;
You are going to love that setup (I know I do).
Django actually is never aware of media files. It just lets apache
serve them. To set this up in your apache site configuration you
should have DocumentRoot set and then for the path of you media file
have a Location entry with SetHan
You can put Django where ever as long as you add it to your python
path then. The problem with a lot of these shared hosts is the fact
that they don't have mod_python and other requirements that are needed
to let django run. Read through this install documentation
http://www.djangoproject.com/docu
I get an 'Upload a valid image. The file you uploaded was either not
an image or a corrupted image.' When I try to save a model in the
admin. I had this issue in the oldforms admin as well. I was passed to
this article:
http://scottbarnham.com/blog/2007/08/22/edit-inline-with-imagefield-or-filefi
TestObjectAdmin(admin.ModelAdmin):
model = TestObject
inlines = [TestObjectInline]
admin.site.register(TestObject, TestObjectAdmin)
On Feb 14, 4:34 pm, Michael Newman <[EMAIL PROTECTED]> wrote:
> I get an 'Upload a valid image. The file you uploaded was either not
> an image or a corr
This one has been debated over and over. It has been decided that
there will be no more as_...() because it is simple enough to hook
into the class and make your own. Here is the discussion over at
django-devs:
https://groups.google.com/group/django-developers/browse_thread/thread/e3bcd07da81c327
I have a newform that I am binding to a model and allowing a user to
edit it. Problem is the images don't show up. I know I have seen some
blog or post that discusses this, but I can't find them anywhere. I
assume the best way to do this is to create a custom widget with a
render function that inc
If that isn't the issue make sure to look at the source HTML. If it is
rendering the code then there is something wrong with your styles that
IE is hiding your content (Most likely a position:relative float
thing). Or you might want to kick apache, sometimes it loads old
settings. Last thing that
http://www.djangoproject.com/documentation/model-api/#many-to-one-relationships
look at the edit inline option. The blogosphere is also nice enough to
have posted hundreds of examples and test cases that might meet your
purposes. Google django edit inline for these examples.
On Feb 21, 9:56 am,
that
there is a little of cross referencing occurring, but I really cannot
think of a better way to accomplish this. Any ideas?
Thanks, Michael Newman
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&
other
ideas?
Thanks for tip anyway.
On Feb 21, 11:58 am, Evert Rol <[EMAIL PROTECTED]> wrote:
> On 21 Feb 2008, at 16:44 , Michael Newman wrote:
>
>
>
>
>
> > I am a bit confused as to why it is that this gives me an error. I
> > hope someone could explain it
del-api/#many-to-one-
> >> relationships
> >> "Note, however, that you can only use strings to refer to models in
> >> the same models.py file -- you cannot use a string to reference a
> >> model in a different application, or to reference a model that has
As Karen said, You didn't set up the inline right. Read through the
docs she pointed you to and fix your errors and the big error will go
away.
On Feb 21, 1:31 pm, "Almir Karic" <[EMAIL PROTECTED]> wrote:
> On Thu, Feb 21, 2008 at 3:02 PM, Karen Tracey <[EMAIL PROTECTED]> wrote:
> > On Thu, Feb 2
Hmm this is interesting because django is rendering out poor html if
your example is correct. IDs in the DOM should be unique. I don't
imagine that this would validate the way you want it to either. Why
not just have 2 form.BooleanField objects and in the def clean make
sure that one is taken care
not in the views per se, but you can certainly take care of this in
the templates, just manually define each of the fields.
On Feb 21, 1:23 pm, csmith87 <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Newbie django user
>
> Is it possible to change a newform label (from the one in the model)
> to on
Your right, I looked too quickly and saw the for instead of the id.
Thanks for the correction.
On Feb 21, 3:54 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On 21 Feb, 18:57, Little_Grungy <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I have a form definition for two radio buttons named choice
I have been having this issue with newforms admin a lot recently
including in a patch for the Auth code. I really think that this is a
problem with newforms admin. I think that the Already Registered error
should be called silently to fix this issue or admin.py should be
imported when the apps are
I am still having this problem. The simple solution is to put all of
the Models together, but I would prefer not to do this. I am pretty
sure that I have done this before. Is this something that has broken
recently in Django?
On Feb 21, 12:53 pm, Michael Newman <[EMAIL PROTECTED]>
How are you getting the URL for the image? I am not having this same
issue using get_image_url in the templates.
On Feb 20, 1:23 pm, Aaron Fay <[EMAIL PROTECTED]> wrote:
> Hey List,In newforms-admin, when I use an ImageField and specify
> (upload_to="myfolder") or (upload_to="myfolder/") the val
I was afraid of that. Thanks Malcolm.
On Feb 22, 4:10 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2008-02-21 at 08:44 -0800, Michael Newman wrote:
> > I am a bit confused as to why it is that this gives me an error. I
> > hope someone could explain it to
I have a strange error that I was hoping someone could help with. I
have a large project that I have incorporated a search functionality
using swish-e. Everything works great until I go to render it to a
template. On some debugging I get a variable that says it has a
length, but no word count and
Seems .decode('cp1252') fixed everything.
http://effbot.org/zone/unicode-gremlins.htm
Explains some if it.
On Feb 23, 10:36 pm, Michael Newman <[EMAIL PROTECTED]> wrote:
> I have a strange error that I was hoping someone could help with. I
> have a large project that
You don't need the .all after the lunch entry list in the template.
You already did that.
Michael Newman
On Mar 5, 2008, at 10:47 PM, "M.Ganesh" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I've pasted a minimalist code here: http://dpaste.com/hold/38198/
&g
javascript. But that's just crazy me...
Michael Newman
On Mar 6, 2008, at 3:24 AM, Jarek Zgoda <[EMAIL PROTECTED]>
wrote:
>
> gabriel napisał(a):
>
>> I am at the point of changing IDE before my next project ( a huge
>> one ).
>> So far I've used Ge
I have a template tag that returns a list of objects in a category in
a context variable. I was wondering if it was normal and expected that
the context variable only works within the content block in which the
item was called?
Also I noticed the must_be_first variable and was wondering if any of
Everything looks right in your code, on a brief glance. In your
template, do you have your form prepared for multipart data; Does your
form tag look like ?
Might be something else, but that is the first thing that jumps out to
me.
Michael
On Mar 10, 6:09 am, Paolo Ferretti <[EMAIL PROTECTED]>
Passing your error along would be helpful because it will help us
pinpoint exactly what part of your code is having issues. Python
traceback is amazing helpful in that if you follow its path, even
though it might not look like anything initially, it will lead you to
what the problem is. This is wh
Depends on the error...
Not to be flippant but there are a lot of exceptions that have to do
with the database, in genernal though I trust django enough not to
really worry about catching exceptions in my database models because
it already takes care of it for you.
If you are getting a specific
to give my cell a call I will
love to meet with you,
Michael Newman
cell - (717) 332-7758
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
I was just messing around with my sites urlconf to keep it organized
and manage clean things up a bit. I make use of generic views quite a
bit and they really save me a lot of time. One of the things that I
noticed however as I was trying to combine a lot of "info_dicts" was
that the generic views
Imagine:
from django.db import models
class Mtmfield(models.Model):
afield = models.TextField()
class Place(models.Model):
somefield = models.ManyToManyField(Mtmfield,
related_name='a_name_that_cant_have_conflicts')
class Meta:
abstract = True
class Restaurant(Place):
/project based.
Michael Newman
On May 4, 2008, at 1:16 PM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
>
>> Is it? Maybe. I don't know if anyone has proposed smartening-up
>> Django's
>> pluralization rules in the past
>
> I had a lo
> - Is it possible to create WML files (or for that matter any customised
> output that is not out there) easily? Especially by way of XML/XSLT.
Django is really flexible with it's template and HttpResponse system.
You can specify headers, types and serializations on the fly. Granted
these types
As is written into templatetags directly. It is a fairly easy process
and it helps with context variables (otherwise how would you access
comment_count in the template).
Look here for how to write a custom tag:
http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-t
The reality is that Django does require a certain curve to get things
up and running. When I first started with Django, it was my first time
working with the server side and it took me a few months to really get
what I am doing. That being said the django community has really been
booming this las
Just as I was writing this up someone brought to my attention:
http://bitnami.org/stack/djangostack
I have never tried it, but if you are feeling adventurous, it might
but just what you are looking for.
On Jun 1, 12:54 pm, Michael Newman <[EMAIL PROTECTED]> wrote:
> The reality is th
Hi Ross;
The key here is to realize that there is a difference between server
side and client side code. Django is server side meaning that it
handles requests and returns them as a HTTPresponse object (generally
HTML). HTML and javascript are client side, meaning that it is
rendered by the clien
I am extremely new to programming, much less Django, but am working my
tail off trying to deploy a student alternative Webzine site.
For the images I have been trying to use the nesh utils,
http://trac.studioquattro.biz/djangoutils/wiki/Thumbnail, because they
look perfect and a friend recommende
The extends feature is really nice in Django. It's not the php
includes where everything has to be in a block in order and extended
that way. Essentially that means you want all of your base block html
elements in the base and then the higher you go the more detailed you
can get.
Using your examp
> Jorge's suggestion is correct for troubleshooting the
> DJANGO_SETTINGS_MODULE error, but it is almost certainly unrelated to
> the problems you're having using nesh.
In the manage.py shell an error when I do the export
File "", line 1
export DJANGO_SETTINGS_MODULE = speakeasy.settings
You're right. Thank you that works. So I am sure that wasn't problem.
Thanks for the help.
On Apr 7, 2:34 pm, "Jorge Gajon" <[EMAIL PROTECTED]> wrote:
> On 4/7/07, Michael Newman <[EMAIL PROTECTED]> wrote:
>
>
>
> > In the manage.py shell
problems. Thanks for the help.
On Apr 7, 10:27 pm, "Michael Newman" <[EMAIL PROTECTED]> wrote:
> You're right. Thank you that works. So I am sure that wasn'tproblem.
> Thanks for the help.
>
> On Apr 7, 2:34 pm, "Jorge Gajon" <[EMAIL PROTECTED]> wr
Try using the related_name option in you manytomany feilds as it might
clear up some of your tables. I agree however posting your models.py
will quickly clear this problem up.
On May 1, 9:46 am, MattW <[EMAIL PROTECTED]> wrote:
> Dear All,
>
> I'm having problems with the Many-to-Many relations i
I am switching over a couple of news Web sites to Django. Sadly our
deadline is creeping up on me and I have never worked with mySQL
before. One site has an active database with the tables that need to
be transferred and the other has a text dump of the old database.
I figure this should not take
You can also not put anything inside of the {% block header %} and
then when nothing is provided nothing will show up.
On May 23, 11:15 pm, David Robinson <[EMAIL PROTECTED]> wrote:
> I'm probably missing something about your question, and please excuse me
> if that's the case, but wouldn't you b
This is appearing at http://speakeasymag.com/staff/Mgnewman
I have been adjusting the SQL a bit but really don't understand why
this error keeps appearing. I did a search and most people who had
this problem were dealing with Utf-8 characters. This is an Id column
from a foreignKey field, so it i
Wow, Thanks for the quick reply. Here I was restructuring my SQL and
everything and it was a simple name problem.
On May 24, 2:19 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2007-05-24 at 06:10 +, Michael Newman wrote:
> > This is appearing athttp://speakea
Something that has been bothering me for awhile and I finally just
decided to post it here because my code work around hits the database
way too many times.
I am writing a custom view for an application that uses multiple
categories per story. So I want to lookup stories so that they aren't
dupli
Thanks for the reply and sorry for my vagueness;
Rob: I was talking about really long lines of python. Thanks for the
heads up about the all. I was just typing off the top of my head and
still and figuring out python.
Malcom: I suppose that is what I am asking. Is there any simple way
to take g
err.. Malcolm--sorry about the typo
--~--~-~--~~~---~--~~
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
on when Django hits the db,
Thanks for all, Mn
On May 29, 3:17 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Tue, 2007-05-29 at 06:56 +, Michael Newman wrote:
> > Thanks for the reply and sorry for my vagueness;
>
> > Rob: I was talking about really long lines o
You mean White Space in the url of the image?
On May 31, 6:42 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 31-May-07, at 4:05 PM, Alessandro Ronchi wrote:
>
> > I am using ImageWithThumbnailField from nesh utils. if I upload a file
> > with a white
> > space it doens't work, and the file
You could need an extra class for this but it should work:
class Topping(models.Model):
# ...
class Pizza(models.Model):
# ...
toppings = models.ManyToManyField(Topping)
class PizzaToppings(model.Model):
pizza = models.ForeignKey(Pizza, help_text='Toppings to go on
Pizza: num in
Nis;
Thanks for catching that I left the manytomany field there. There is
no need for that.
revised code:
class Topping(models.Model):
# ...
class Pizza(models.Model):
# ...
class PizzaToppings(model.Model):
pizza = models.ForeignKey(Pizza, help_text='Toppings to go on
Pizza: num in
few toppings, now when I insert
> a new pizza with his toppings the toppings and quantities aren't
> saved.
> No error messages, but inspecting database reveals no entries for the
> auxiliary table pizza_pizzatopping
>
> Any hint?
> I'd like to solve this problem, lea
I use this code in quite a few of my programs and never have issues. I
don't know why you are having this problem and it is not throwing any
errors. Are you using the Web interface at all? If so when saving are
there any errors. If the objects aren;t saving to the db generally
Python throughs some
This is strange and I am sure I am doing something wrong, but i have
been starring at this for a while now and can't see it.
I am getting this mod_python error:
ProcessId: 31673
Interpreter:'mysite'
ServerName: 'mysite'
DocumentRoot: '/var/www/vhosts/mysite/httpdocs'
URI:
try datetime.now().__str__() or if you want to make it pretty try
datetime.now().strftime(YourCustomFormatHere). Look at
http://docs.python.org/lib/strftime-behavior.html#strftime-behavior
Your problem is a datetime object is a not a string. Both those above
examples turn it into a string.
On Oc
I am so close to getting this project done. The last little bit is all
about validation. I have been following the docs pretty closely and am
really at a loss as to what is going on right now. The Error:
TypeError at /videoUploader/
__init__() got an unexpected keyword argument 'field_name'
Here
Thanks for the help. I finally put two and two together. I was
following this tutorial http://www.djangoproject.com/documentation/forms/
and somehow got myself all messed up. Thanks for the reply and back to
the code.
On Oct 20, 4:02 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Well... Yo
):
django.core.validators.hasNoProfanities(self.clean_data['textfield'],
null)
but I wouldn't want to do this if those validators won't be there any
longer.
On Oct 20, 2:25 pm, Michael Newman <[EMAIL PROTECTED]> wrote:
> Thanks for the help. I finally put two and two tog
This isn't strictly a problem with Django, but for some reason I am
having problems extracting my python eggs. Mod_python comes back with:
ExtractionError: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the
Python egg
cache:
[Errno 13] Permi
, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Dec 4, 11:22 am, Michael Newman <[EMAIL PROTECTED]> wrote:
>
>
>
> > This isn't strictly a problem with Django, but for some reason I am
> > having problems extracting my python eggs. Mod_python comes back w
I am feeling a little lost, a project that I have used intcomma in reliably
on an update suddenly stopped getting the commas inserted. This is for an
out of request cycle email.
Attempting activate the language doesn't seem to change anything. Am I
missing something simple here?
>>> from djang
ivate("en")
> >>> intcomma(1000)
> '1,000'
>
>
> use_l10n=False in a template is:
>
> {% load l10n %}
>
> {% localize off %}
> {{ value }}
> {% endlocalize %}
>
> https://docs.djangoproject.com/en/1.8/topics/i18n/form
89 matches
Mail list logo