Hi,
I have a listing of contact from which I choose contact and get the
mailid.
Now I want to send mail to the selected mailid by using another form.
So right now what I am doing is :
view contacts( request):
if request.method == 'POST':
return HttpResponseRedirect(reverse('mailing_lis
On Mon, 2008-09-29 at 22:46 -0700, krylatij wrote:
> I have Django site in 2 languages - Moldavian(default) and Russian
> But django-admin is not localized for Moldavian, that's way i want to
> use Russian in admin.
> So my settings.py will look like this:
>
> LANGUAGE_CODE = 'md'
>
> LANGUAGES
I think you need to write custom widget for ImageField
--~--~-~--~~~---~--~~
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 th
I have Django site in 2 languages - Moldavian(default) and Russian
But django-admin is not localized for Moldavian, that's way i want to
use Russian in admin.
So my settings.py will look like this:
LANGUAGE_CODE = 'md'
LANGUAGES = (
('md', (u'Moldavian')),
('ru', (u'English')),
)
But dj
Add extra variable to the context in this way:
http://code.djangoproject.com/wiki/NewformsHOWTO#Q:HowcanIpassextracontextvariablesintomyaddandchangeviews
then override your submit_line.html template and put into it something
like that:
{% if my_show_delete_link %}
{% if show_delete_link %}{% tran
On Mon, 2008-09-29 at 14:08 -0700, Peter wrote:
> Hi folks,
> I want to check a form when it submitted to see whether it contains
> an input called 'lastUpdate'
>
> If lastUpdate is blank I want to populate it with the current time
> (preferably as the number of milliseconds since 1970 so js
I never thought of that, i can just use the comments system, thanx for
that Malcolm.
Malcolm Tredinnick wrote:
> On Mon, 2008-09-29 at 20:45 -0700, joshuajonah wrote:
>
>> Also i should say, I'd like to be able to attach multiple "notes" to
>> any given model.
>>
>
> Replace "note" with "
On Mon, 2008-09-29 at 20:45 -0700, joshuajonah wrote:
> Also i should say, I'd like to be able to attach multiple "notes" to
> any given model.
Replace "note" with "comment" and it's basically the same setup. So have
a look at how Django's comments app does this
(django.contrib.comments.models).
On Mon, Sep 29, 2008 at 5:08 PM, Peter <[EMAIL PROTECTED]> wrote:
>
> Hi folks,
> I want to check a form when it submitted to see whether it contains
> an input called 'lastUpdate'
>
> If lastUpdate is blank I want to populate it with the current time
> (preferably as the number of milliseconds
Also i should say, I'd like to be able to attach multiple "notes" to
any given model.
On Sep 29, 11:42 pm, joshuajonah <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I'm making a little basic intranet CRM. Here's the models right
> now, pretty straight forward:
>
> class Person(models.Model):
>
Hi guys,
I'm making a little basic intranet CRM. Here's the models right
now, pretty straight forward:
class Person(models.Model):
url = models.SlugField(max_length=100)
first_name = models.CharField(max_length=100)
last_name = models.CharField(max_length=100)
business = mode
On Sep 30, 12:20 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-09-29 at 18:57 -0700, felix wrote:
> > I'm trying to fix some urls in my templates
>
> > these are urls linking to the admins site that cannot use the {% url
> > %} tag or reverse.
>
> > these urls are "absolute" i
On Mon, 2008-09-29 at 18:57 -0700, felix wrote:
> I'm trying to fix some urls in my templates
>
> these are urls linking to the admins site that cannot use the {% url
> %} tag or reverse.
>
> these urls are "absolute" in that they don't use reverse (which is
> preferable, god bless django)
> bu
Hi folks,
I want to check a form when it submitted to see whether it contains
an input called 'lastUpdate'
If lastUpdate is blank I want to populate it with the current time
(preferably as the number of milliseconds since 1970 so js can load it
easily, date:"U" seems to cover it)
If it isn
On Sep 30, 10:29 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> I strongly suspect you're debugging the wrong problem here.
>
> Regards,
> Malcolm
I am passing all the required arguments into the form. I wrote a
simple dispatcher that parses request.POST into a dictionary of the
form:
{mode
Hi everybody! I'm a new Django developer and for learning the
framework I decided to create (another) pastebin clone that I
published on http://incollo.com
The application works very well and I'm very proud of it because I
started learning Django six days ago :-)
Anyway..
I'm having problems in ac
I'm trying to fix some urls in my templates
these are urls linking to the admins site that cannot use the {% url
%} tag or reverse.
these urls are "absolute" in that they don't use reverse (which is
preferable, god bless django)
but the admin urls are not addressable by name, so I link to them
"
On Mon, 2008-09-29 at 16:32 -0700, Cortland Klein wrote:
> I've enabled caching via UpdateCacheMiddleware and
> FetchFromCacheMiddleware, placed at the beginning and end of
> middleware, respectively.
>
> When loading a URL, I'm getting a Vary: Accept-Encodinge.
>
> Problem is, each page lo
On Mon, 2008-09-29 at 16:07 -0700, globophobe wrote:
[...]
> However, if I want to change an existing object it seems I must use
> request.POST, i.e.
>
> f = ArticleForm(request.POST, instance=a)
>
> Because,
>
> f = ArticleForm({'title':'Old news'}, instance=a)
>
> In [64]: f.is_valid()
> Ou
On Mon, 2008-09-29 at 13:38 -0700, felix wrote:
> syncdb fails on my deployment server (mysql 5.0.67 on ubuntu) with :
>
> File "./manage.py", line 11, in
> execute_manager(settings)
> ...
> _mysql_exceptions.OperationalError: (1059, "Identifier name
> 'releasesnewsletter_id_refs_abstract
On Tue, Sep 30, 2008 at 5:20 AM, Tim Sawyer <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm having a problem testing with:
>
> c = Client()
>response = c.post('/guestbook/', {
>'name' : 'name',
>
Yes, product is an array of many entries. It is actually a queryset
that is passed to the template and I am trying to access a specific
entry.
I have not worked with custom tags before, but I will start reading up
on it.
On Sep 29, 6:12 pm, felix <[EMAIL PROTECTED]> wrote:
> it might be easies
it might be easiest to write a custom tag there
{% vendor_of_product product forloop.counter %}
is product an array ?
On Sep 30, 2:31 am, SnappyDjangoUser <[EMAIL PROTECTED]> wrote:
> Hi Folks,
>
> How can I use a forloop counter to index into a query set as in the
> example below?
>
> (I know
Hi Folks,
How can I use a forloop counter to index into a query set as in the
example below?
(I know this code does not work, but I want to do something of the
sort):
{% for form in quote_product_formset.forms %}
{{ product.(forloop.counter).Vendor }}
{{ form }}
{% endfor
megrez80 wrote:
> Ok, so I can probably live with duplicating some HTML.
>
> Then my next question is how to access .css and image files (which
> reside under the server's document root)
> from within my template? Do I need to duplicate those under my app
> path somewhere?
>
No, you just need to
On Monday, 29 September 2008 22:56:24 Benjamin Wohlwend wrote:
> If you use
> the URL with a trailing slash, only one request should occur.
You sir, are a peach! That sorted it. What a relief; many thanks.
\d
--~--~-~--~~~---~--~~
You received this message becaus
Ok, so I can probably live with duplicating some HTML.
Then my next question is how to access .css and image files (which
reside under the server's document root)
from within my template? Do I need to duplicate those under my app
path somewhere?
Ken
On Sep 29, 12:25 pm, jonknee <[EMAIL PR
Er, I'm getting a Vary: Accept-Encoding,Accept-Language,Cookie header.
On Sep 29, 4:32 pm, Cortland Klein <[EMAIL PROTECTED]> wrote:
> When loading a URL, I'm getting a Vary: Accept-Encodinge.
> > Vary: Accept-Encoding,Accept-Language,Cookie
--~--~-~--~~~---~--~~
Y
I've enabled caching via UpdateCacheMiddleware and
FetchFromCacheMiddleware, placed at the beginning and end of
middleware, respectively.
When loading a URL, I'm getting a Vary: Accept-Encodinge.
Problem is, each page load Google Analytics keeps changing
__utm(a,b,c,z) cookies, apparently
If you what to provide some init state for form - use `initial` param
On Sep 30, 2:31 am, globophobe <[EMAIL PROTECTED]> wrote:
> I would like to instantiate a modelform with a dictionary to work with
> an existing object, e.g.
>
> a = Article.objects.get(title='Big news')
> f = ArticleForm({'tit
On Sep 30, 6:08 am, davenaff <[EMAIL PROTECTED]> wrote:
> 2. If not, how have people solved this in the past (subclass the
> RadioSelect widget?)
Take a look at django.forms.widgets.RadioFieldRenderer
Subclass it, specifically the 'render' method. Then add the 'render'
param to your form's Radio
Pardon me, it's early. What I mean to do is pass new data to the form
to be saved to the object.
If I create a new object with the ModelForm then it's OK to pass the
data to the form in a dictionary, i.e.
f = ArticleForm({'title':'Old news'})
In [60]: f.is_valid()
Out[60]: True
However, if I w
On Sep 30, 7:39 am, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> If you what to provide some init state for form - use `initial` param
I tried to use the 'intial' param, however,
i = {'title':'Old news'}
a = Article.objects.get(title='Big news')
f = ArticleForm(initial=i, instance=a)
In [50]: f.i
I would like to instantiate a modelform with a dictionary to work with
an existing object, e.g.
a = Article.objects.get(title='Big news')
f = ArticleForm({'title':'Old news'}, instance=a)
However, ModelForm seems to require request.POST rather than a
dictionary, i.e.
f = ArticleForm(request.POS
Hi,
I'm having a problem testing with:
c = Client()
response = c.post('/guestbook/', {
'name' : 'name',
'email' : 'email',
'realurl' : 'u
On 27 sep, 07:17, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
Hi Malcolm.
> On Wed, 2008-09-24 at 02:36 -0700, bruno desthuilliers wrote:
(snip)
> I may not be completely understanding the problem you're explaining -- a
> short example from you may help illustrate the exact difficulty.
Firs
Hi, I want to provide unique attributes to each radio button in a
RadioSelect widget to integrate with several AJAX effects. Ideally
the code produce would look something like this:
All books
In print books
Out of print books
Only these books
Basically, when the last radio button
Sounds like you could have some apache processes holding on to old
versions of your code... have you restarted apache recently?
Colin
On Mon, Sep 29, 2008 at 1:00 PM, rmnl <[EMAIL PROTECTED]> wrote:
>
> I'm experiencing a strange problem with my project. I have an app
> named products and this a
Using 1.0, I have fieldsets defined on a model. What I'd like to do is
determine if a variable on the model is true, and if it is set one of
the fieldsets to collapse. Is this possible?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
Hi,
I'm not sure, but it's possible that the first request is redirected
from
http://ddm/incunabula/zozo/authorartist
to
http://ddm/incunabula/zozo/authorartist/ <-- note slash
If you have CommonMiddleware loaded and settings.APPEND_SLASH is True,
Django will automatically redirect URLs with
Hi,
I've been able to somewhat customize the admin page for a record by
using fieldsets and list_display.
Here's the thing though. I have an ImageField which I can show in
list_display (I copied/modified a thumb function) but I can't figure
out how to show the image in the fieldset. I know des
syncdb fails on my deployment server (mysql 5.0.67 on ubuntu) with :
File "./manage.py", line 11, in
execute_manager(settings)
...
_mysql_exceptions.OperationalError: (1059, "Identifier name
'releasesnewsletter_id_refs_abstractmailing_ptr_id_62770683bbc11c0b'
is too long")
the same codeba
Conventional wisdom is that mod_python eats a little more
memory than a correctly configured mod_wsgi.
Here are some nice posts about using mod_wsgi in low memory
environments:
http://groups.google.com/group/modwsgi/browse_thread/thread/d21c334972fc8d37
http://www.technobabble.dk/2008/aug/25/dja
I'm experiencing a strange problem with my project. I have an app
named products and this app doesn't show up in the Admin site. Most of
the times that is, because I can reload the page a few times and about
1 out of 4 times the app does show up.
This only happens with Apache2 with mod_python. Wh
Hi,
When I use $('blah').load() to fetch a response into a div it seems to be
pulling the data twice. This I see in Firebug where there are 2 GET headers.
Here is the JS that is fired on a click of a span tag:
$('#pickoradd_author').click( function() {
$('#lister').load('http://ddm/incunabula/zo
Nick,
I'm not a longtime Django user, but I would check de django docs on
"modelform". That covers all my needs.
Mvrgr,
Gerard.
Nick Lo wrote:
> Hello,
>
> I'm working on a series of forms that need to look something like the
> following with days of the month and a field or two for variou
I have a company model which relates to a product model 1-> M.
My goal is to search both models and return a result set set that will
show the company name and product name that are results of the query.
The implementation below only shows the company name.
1. Can I send back the product as well
Hi,
if I were you, I'll go in the sense of your management because using
Liferay isn't in contradiction with using Django.
In fact, I think Liferay (and any JSR 168 container) aims at federating
portlets (just a kind of component after all) which may be written in
any language. Just imagine Li
Benjamin Wohlwend wrote:
> [a minor tale of woe]
>
> P.S.: before someone asks: we're young and we need the money ;-)
>
Is that one reason, or two? ;-)
Thanks for the explanation. Seems like you and Nic are learning about
corporate politics the hard way. Sadly the technical staff often don'
Hi,
I'm a co-worker of Nic and want to clarify some points.
We work at an institute of a major university in Switzerland. Our
institute makes a habit out of employing students for its in-house web
development. As a result, the personnel in the webdev team fluctuates
quite often. Nic and myself m
Thanks Frank, that's very interesting. A lack of complaining users is
much to be desired. Have you ever used this set up for multiple sites?
I have about 20 sites running, and there may well be more in the
future.
It would be excellent also to know what you found painful about
mod_python.
All th
I updated the post for you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL
Hi All,
I am very new in Django Framework.
I want to know how to stop internal server without ctrl+c.
For start command : python manage.py runserver
What is stop command ?
Ravi Hingarajiya
--~--~-~--~~~---~--~~
You received this message because you are subscribe
Hello,
I'm working on a series of forms that need to look something like the
following with days of the month and a field or two for various types
of readings to be entered.
Date Some reading
Today|___|
Yesterday |___|
I wrote a post for you on my blog:
http://vizualbod.com/articles/nginx-fastcgiwsgi-django-deployment
I've tried mod_python and it was a pain.
Frank
http://vizualbod.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I like that there's a "delete" checkbox with NFA, but what if I don't
want the item to be delete-able? I have a case where I'm they're an
inline, and I don't want anyone to be able to delete those items
unless the parent is deleted. Can this be done?
--~--~-~--~~~---~--
Well, as it turns out, it was more trouble than it was really worth.
What I was after was bringing the car back and still having access to
the foreign keys and such contained in it, but there were just too
many pitfalls for me. So, I ended up creating a list full of dicts
containing the key info f
Thomas Guettler wrote:
> Hi,
>
> I have a form with two DateFields. If I pass these values
> to a range search on a DateTimeField column like this:
> .filter(...__range=(form.cleaned_data['start'], form.cleaned_data['end']))
> the end date is excluded.
>
>
> The resulting SQL:
>SELECT ...
Kool... that fixed it
Thanks
Jim
On Sep 29, 1:23 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 29, 2008 at 2:02 AM, jim <[EMAIL PROTECTED]> wrote:
> > This gives me an error:
> > Cannot resolve keyword 'user' into field. Choices are: xxx, yyy, zzz
>
> > Any ideas as to what m
On Sep 29, 12:06 pm, megrez80 <[EMAIL PROTECTED]> wrote:
> Regarding "repurposing" the PHP-generated HTML, do you mean
> statically, eg. copying the page source into a template?
>
> If not, how can this be accomplished dynamically? Is there a way to
> get the raw HTML output of a PHP-based URL pro
Having worked with both systems, I would have to agree that comparing
them is difficult. Like apples and oranges are both spherical fruits
that grow on trees, Django and Liferay are both web application
frameworks that *can* make developing web applications much easier.
Back when I was working w
Thanks for the response.
Regarding "repurposing" the PHP-generated HTML, do you mean
statically, eg. copying the page source into a template?
If not, how can this be accomplished dynamically? Is there a way to
get the raw HTML output of a PHP-based URL programatically and then
plug that into a t
Hi All,
I've started working on a SelectTimeWidget that is very similar to the
SelectDateWidget in django.forms.extras.
http://dpaste.com/hold/81196/
This is my first look at Django's internals, so any (constructive)
criticism is welcome!
Brad
--~--~-~--~~~---~--~--
Having had a few problems with memory usage on my Django sites, I've
realised a problem with my current set up is that apache is serving
media files as well as doing all the mod_python django stuff.
The recommended solution I keep coming across is to serve media files
from a separate lightweight
On Sep 29, 12:58 am, MilesTogoe <[EMAIL PROTECTED]> wrote:
> I've seen the docs on how to relate the user with a 1-1 relationship (ie
> profile) but is there a way to have another model relate in a 1:many
> (ie one company with many users) - this would require user to have a
> company field.
Ha
On Sep 27, 7:09 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> > I couldn't get that to work, but the following did:
>
> > (r'^contact/$', login_required(ContactFormWizard([ContactFormPartOne,
> > ContactFormPartTwo])))
>
> > But it complained it couldn't find the __name__ attribute, so I ad
Ahoj Tomáš,
> I have problem with django v1.0 installed on Solaris 9 sparc. I installed
> packages cx_Oracle-4.3.1, sqlite3 v3.5.7 and pysqlite-2.4.0 there and tried
> to start './manage.py syncdb' in my project. BUT:
>
> When I define connection to "DATABASE_ENGINE='sqlite3' in settings.py, I
Hi,
I have a form with two DateFields. If I pass these values
to a range search on a DateTimeField column like this:
.filter(...__range=(form.cleaned_data['start'], form.cleaned_data['end']))
the end date is excluded.
The resulting SQL:
SELECT ... WHERE "mytable"."date" BETWEEN '2008-09-22
Paddy Joy wrote:
> Thanks for the tip I didn't know you could define the formclass like
> that. Definately makes it more readable.
>
>
Yes, classes are first-class objects in Python, so you can pass them as
function arguments, save them in variables, and so on.
regards
Steve
--~--~-
On 29 Sep 2008, at 14:01 , [EMAIL PROTECTED] wrote:
> Is this a valid email address?
>
> [EMAIL PROTECTED]
>
> I received it on an external form, but Django admin for Users seem to
> accept it as well... (0.96).
>
> -- bjorn
Mail address validation is usually a waste of time anyway. Just check
On Sep 27, 3:23 am, Donn <[EMAIL PROTECTED]> wrote:
> The thing about them is I see a lot of db hits happening. Each letter (or two)
> pulls another query on the back end. Ouch. ( I think)
It depends. In the most basic model, yes, but if the underlying data
isn't changing rapidly, you can set up
On Sep 29, 8:01 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Is this a valid email address?
>
An asterisk is allowed in the local part of an email address. So that
makes mr_biggles*_worth a valid address.
-Rajesh
--~--~-~--~~~---~--~~
You received this m
since you can't add fields to User, you should add it to Company
Company
employees = models.ManyToManyField(User,editable=False)
# a user can actually be in several companies
user.company_set.all()
this is because the Company model is allowed to contribute to the User
class
company.employ
Kenneth Gonsalves wrote:
> hi,
> when I open a jpg file directly in firefox, I get a magnifying glass cursor,
> which on clicking gives me a bigger more detailed image. The same file when
> served through the get_photo_url in a django template does not give this -
> how can I achieve this?
>
Thanks. Sounds like a good idea! I will give it try!
On Sun, Sep 28, 2008 at 5:54 PM, Erik Allik <[EMAIL PROTECTED]> wrote:
> Since a Company could have multiple Products, it's not really possible to
> show the product as well with the way you do the querying.
> I would instead do a search on the
Hi,
I intend to create a simple inventory app. There are two major tables/
models: software and hardware. Software can be installed on certain
types of hardware (i.e. PCs and servers), but not on others (displays
etc). How can I restrict the ForeignKey field displayed within the
edit form for sof
No, I think you've got it right.
I should write the code first, and then say something about it I
guess... ;-)
I'll get back when I did so.
Thanks for your reply,
benjamin
Am 28.09.2008 um 18:27 schrieb Erik Allik:
> But you only have a single comment model to wire to, unless I'm
> missing
On Mon, Sep 29, 2008 at 2:42 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:
>
> Hi Karen,
>
> Thank you for your answer, but when i access the _errors att in a
> controller methods, and
> adds a new array containing a unicode string, it is not rendered like
> the other error messages.
> I see an
2008/9/28 Hingarajiya,Ravi <[EMAIL PROTECTED]>:
> Hi Alessandro,
>
>Thanks for your reply.I know kill command.
>
> But we are developing IDE for Django. So We want to know that how to stop
> internal server using any command (example : /etc/init.d/httpd stop in
> apache web server ).
The ht
On Mon, Sep 29, 2008 at 1:03 AM, Bo Gu <[EMAIL PROTECTED]> wrote:
> Hi,
> I was testing fill some chinese strings to the text field in the Django
> admin page, and I got the Incorrect string value Error. I tried two models
> which are defined in my app, and the strange thing is that the "for c
Is this a valid email address?
[EMAIL PROTECTED]
I received it on an external form, but Django admin for Users seem to
accept it as well... (0.96).
-- bjorn
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
On Monday 29 Sep 2008 12:43:32 pm Jeff Anderson wrote:
> > hi,
> > when I open a jpg file directly in firefox, I get a magnifying glass
> > cursor, which on clicking gives me a bigger more detailed image. The same
> > file when served through the get_photo_url in a django template does not
> > giv
Would using strip_tags() and {{ message|safe }} be ok? Anyone know for
sure?
On Sep 26, 5:57 pm, 7timesTom <[EMAIL PROTECTED]> wrote:
> I have a public form that's used to email details of stuff on my site
> to an email address.
>
> Here is a snippet of the email received:
>
> Fred says:
> **
hi radovan
yes i am setting these in admin. The Book table(model) are filled with
records. Otherwise i won't be able to assign them to Tester model.
As i said, in my python code or from mysql terminal all is visible. But
in admin the choosen records are not marked as choosen.
thank you
pavel
Thanks for the tip I didn't know you could define the formclass like
that. Definately makes it more readable.
Paddy
On Sep 28, 11:28 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> Steve Holden wrote:
> > Paddy Joy wrote:
>
> >> I have a model with a 'User' foreign key.
>
> >> class Domain(models.
For look-and-feel, check out http://www.openplans.org/projects/deliverance/
If you need to share logic/data, you could have either side expose a
lightweight data feed (XML or JSON). Or as a simpler (but maybe not as
elegant) alternative you could simply share parts of the same database.
Erik
yes, that's it! My exclude was not under class Meta, but along with
the rest of the fields instead, my bad.
thanks!
On Sep 28, 11:06 pm, Gerard Petersen <[EMAIL PROTECTED]> wrote:
> John,
>
> Looking at your exclude syntax, that might be the problem. This would be the
> correct code (assuming m
Forgot to say, you need a way to clean up the Search model's table
from time to time using a cron job or similar or otherwise you may run
into problems. An expiry_date field on the Search model would be
necessary to decide which searches to delete. You have to realize,
though, that this ap
It can be achieved using a Search model, but only if you only need
search on a single model.
class YourModel(models.Model):
...
clsss Search(models.Model):
yourmodels = models.ManyToManyField(YourModel)
So the search form is POST not GET. After POST'ing, you do the
searching, then crea
Hello all Django-friends,
I have problem with django v1.0 installed on Solaris 9 sparc. I installed
packages cx_Oracle-4.3.1, sqlite3 v3.5.7 and pysqlite-2.4.0 there and tried to
start './manage.py syncdb' in my project. BUT:
When I define connection to "DATABASE_ENGINE='sqlite3' in settings.p
Thanks a lot guys. That was helpful. I will try it like this and
definitely come back later for more advice.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
On Mon, 2008-09-29 at 01:16 -0700, NoviceSortOf wrote:
[...]
> __So to rephrase my questions
>
> * Does Django assume that certain modules are loaded?
No.
>
> * Does the tutorial assume certain modules are loaded?
If you mean the tutorial that comes with Django itself (as part of the
documen
Hello,
I am trying to use the get_profile() function:
In my settings.py i have:
AUTH_PROFILE_MODULE = 'register.registration'
In my apps/user_profile/views.py i have:
def index(request):
if request.method == 'POST':
pass
else:
if request.user.is_authenticated():
On 24 Sep 2008, at 3:40 pm, Grigory Fateyev wrote:
> Maybe create new field w/ captcha validation?
http://smileychris.tactful.co.nz/ramblings/recaptcha/
.. is a good place to start.
--
David Reynolds
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this
On Mon, Sep 29, 2008 at 2:02 AM, jim <[EMAIL PROTECTED]> wrote:
> This gives me an error:
> Cannot resolve keyword 'user' into field. Choices are: xxx, yyy, zzz
>
> Any ideas as to what may be causing this?
Your profile model must have a ForeignKey or a OneToOneField pointing
to User, and the nam
>
> I had a similar issue.
>
> The fix i have found on the web is to wrap your action in an if
> statement to make sure you only do it once
>
> Something like
>
> def save(self):
> if not image_scaled:
> scaled_name = os.path.split(self.image_original.name)[-1]
>
I've spent some time with the book recommend as well as other
tutorials on Python. My question here is directly related
to Chapter 7 of the Tutorial/Definative guide to Django,
which does not seem to provide a comprehensive list of imports
for the code for doing a data search it works the reader
On 21 Sep 2008, at 8:11 pm, [EMAIL PROTECTED] wrote:
>
> Hello Daniel,
>
> Thank you for your reply.
>
> I guess then that I cannot test image heights and widths on a form
> pre-
> save, because that is the only reason I can think of for this error
> after forum submissal (if I use clean_logo)
On Sep 29, 8:02 am, jim <[EMAIL PROTECTED]> wrote:
> Hello,
> I am trying to use the get_profile() function:
>
> In my settings.py i have:
>
> AUTH_PROFILE_MODULE = 'register.registration'
>
> In my apps/user_profile/views.py i have:
>
> def index(request):
>
> if request.method == 'POST':
99 matches
Mail list logo