Hi Kennath,
On Sat, Nov 28, 2009 at 11:14 AM, Kenneth Gonsalves wrote:
>
> Please refrain from spreading FUD from one instance.
what do you mean? He is not spreading FUD, service is what we all pay
for, if it happens it is, let that be one or multiple instances. He is
just sharing his bad experi
I started a new thread because google groups does not let me reply
this old post, but I'm sending this just in case someone else stumbles
upon this issue.
On Jan 30, 2:32 pm, "dick...@gmail.com" wrote:
> pretty basic database i created using the "polls" tutorial, and now
> trying to testinspectdb
chefsmart wrote:
> Is there a way to allow only superusers to login to and use the admin
> section? Users with is_staff = True do exist and that can't be changed
> because this app is in use and makes use of is_staff in some other
> way.
I believe so. Create a group (say no_admin?) with no permiss
On Saturday 28 Nov 2009 10:58:27 am digicase wrote:
> A warning to anyone using or about to purchase WebFaction hosting. Our
> shared server (web44) went down on Thursday and it is only now, 40
> hours later that they have been able to restore the server to anything
> near working order.
>
these
A warning to anyone using or about to purchase WebFaction hosting. Our
shared server (web44) went down on Thursday and it is only now, 40
hours later that they have been able to restore the server to anything
near working order.
I am sad to report this, as up until now I had complete faith and
tru
Is there a way to allow only superusers to login to and use the admin
section? Users with is_staff = True do exist and that can't be changed
because this app is in use and makes use of is_staff in some other
way.
Can this be achieved without changing the code in contrib.admin or
contrib.auth?
--
On Sat, Nov 28, 2009 at 6:20 AM, Xbiton wrote:
> by setting the DATABASE_ENGINE = 'doj.backends.zxjdbc.mysql' and
> starting
You just say the engine as mysql
\> Error was: No module named mysql
>
\
Its clearly the issue "No module name mysql" install python-mysql
using easy-install or download
Hi,
I've installed djando on jython, which seems to work nice. I've only a
problem using the django-jython
sql package which I installed and by making some tests, seems to work
properly.
by setting the DATABASE_ENGINE = 'doj.backends.zxjdbc.mysql' and
starting
jython manage.py runserver I recive s
Does the newly created model lack a path entirely, or does it have a
path that points to a false location? In other words, is the right
path making it to the database, yet not to the filesystem to copy the
file? Also, since you didn't mention anything about it, I would
remind you that a proper te
I have a parent Class "ComponentBase", with abstract=False, that many
other classes extend.
The parent Class has a ForeignKey relation to another class, "Band".
It is convenient to be able to get a list of all of a band's
components without having to explicitly list each component class.
I am doi
You've got a lot of models in that file. Which one are you trying to
save when it throws the error?
By the way, I notice that your "ItemWithMedia" class is probably
creating a database table.. if you never need to manipulate it direct
(ie, you only make subclasses of it), I might suggest putting
Hey,
Mainly I would like to know what the intended behavior of "save as
new" is supposed to be, if it is supposed to copy the files, I will
look further into why its not working for me.
I was assuming that it would, and didn't find anything in the
documentation to the contrary. If it is the
btw. here is a full code:
models.py
http://snipt.net/vedran/django-models-cannot-assign-none?key=ba151d53cbe8e7c6fd8cfd7993c72897
admin.py
http://snipt.net/vedran/django-admin-cannot-assign-none?key=53222b89cf415d0a0a7750f1510ab8a1
so... when i go to create new Actual item i get this error:
Cann
I am wondering if there is a style guide anywhere for writing Django
templates. Also, are there programs to automatically format your
templates...to indent block tags, for example? I know there are
autoformatters for HTML, but I am not aware of any tools that handle
Django tags. Also, it would b
i get this error when i try to create new item in admin site.
here is my models.py
import datetime
from django.db import models
from tinymce import models as tinymce_models
from filebrowser.fields import FileBrowseField
class ItemWithMedia(models.Model):
created = models.DateTimeField(auto_no
On Fri, Nov 27, 2009 at 2:53 AM, adelaide_mike
wrote:
> One final question if I may (well I hope its the last).
>
> In my standard report generating view I need to use Arial font (for
> example).
>
> I have studied the reportlab docs (Paragraphs chapter) for hours and
> tried all sorts of guesses
On Nov 27, 2009, at 1:01 PM, Eric wrote:
> Why doesn't
> Mac have an easy way to install stuff.
I think we'll need a bit more information about the problem you're
having; installing Django 1.1 on my Leopard MacBook Pro was entirely
painless. What errors are you getting at which steps?
--
--
Thanks. With a one-line patch now I can debug templatetags :)))
Oh dear, target milestone is 1.2 I don't know why is it so slow.
Gergo
+-[ Gergely Kontra ]--+
| |
| Mobile:(+36 20)356 9656
I'm trying to get Django installed and I can't figure out why its not
working. I purchased the book Djang 1.0 web site development and the
install instructions in the book are identical to instructions on the
Django site. It seems simple enough but for some reason I always catch
hell when it comes
thank you.
Excluding city from the ModelForm seems to work as well...
class AddRestaurantForm(ModelForm):
rating = forms.IntegerField(widget=forms.Select(choices =
RATING_CHOICE), required=False)
city = forms.CharField(max_length=100)
class Meta:
model = Restaurant
ex
I am not fully tracking to the problem here, but when it comes to
overriding save() behavior on forms, I find the following helper to be
handy:
def build_instance_from_form(model_form):
instance = model_form.save(commit=False)
return instance
Then in your view code do something like this:
On Nov 27, 12:30 am, Skylar Saveland
wrote:
> ha, reading lists on mobile ... I didn't even see that you said that
> each user has their own table (still hard to see exactly how this is
> efficient/possible/done though).
what do you mean? i just meant that in my database, sales transactions
are
The problem is that city name is not unique.
Can I pass the city instance in the overrided AddRestaurantForm's save
method?
thank you
On Nov 27, 5:12 pm, Tim Valenta wrote:
> Try overriding your AddRestaurantForm's "save" method:
>
> def save(self, commit=True):
> self.instance.city =
Okay... so here's the problem.
I've been using a template override for change_form.html to always
check the object-tools block and add things in there. I tried to be
more modular about it, but it never seemed to work out quite right.
So I'm overriding the entire template on my own, and I must hav
Thanks!
Don't know how I missed it in the docs.
-Tim
On Nov 27, 11:28 am, Karen Tracey wrote:
> On Fri, Nov 27, 2009 at 9:26 AM, Tim Langeman wrote:
>
> > I know that there is a setting to configure the db_table in django,
> > but I haven't found any similar setting for the field names.
>
> The
> AFAIK admin uses CSRF by default in SVN version.
I'm sorry, but I have no idea what that means. What is "AFAIK"?
I've read that page you've linked to, and I fail to see what I've done
wrong (since I didn't explicitly *do* anything).
Tim
On Nov 27, 10:18 am, rebus_ wrote:
> 2009/11/27 Tim Va
2009/11/27 Tim Valenta :
> Has anybody else experienced a senseless failure of the dev trunk's
> CSRF verification? Very suddenly this morning, Django won't let me
> change anything in my admin sites. I didn't update my copy of the SVN
> trunk, but as soon as I took myself off of the admin-ui bra
Has anybody else experienced a senseless failure of the dev trunk's
CSRF verification? Very suddenly this morning, Django won't let me
change anything in my admin sites. I didn't update my copy of the SVN
trunk, but as soon as I took myself off of the admin-ui branch, it
flipped out.
Step by ste
On Nov 27, 5:56 am, Jarek Zgoda wrote:
> Wiadomo¶æ napisana w dniu 2009-11-27, o godz. 00:31, przez
> hcarvalhoalves:
>
> > I'm able to configure Cherokee to run my Django project correctly,
> > using the included wizard. The problem is, if an exception is thrown,
> > Cherokee just shows a "Unha
On 09-11-27 4:41 AM, Allen wrote:
> Dear Bruno
>
> Great to hear that there are other ZOPE users among us.
More than you might think ;)
> When I work with ZOPE I code with dtml. I only found out about ZPT
> when I quiz ZOPE and never got familiar with it afterwords. The first
> thing they teach y
On Fri, Nov 27, 2009 at 9:26 AM, Tim Langeman wrote:
> I know that there is a setting to configure the db_table in django,
> but I haven't found any similar setting for the field names.
>
There is one:
http://docs.djangoproject.com/en/dev/ref/models/fields/#db-column
Karen
--
You received thi
Stodge wrote:
> Thanks. I have the DataTables plugin working so I can filter my
> records. Now I just need to work out how to select specific ones from
> the table and work with them.
>
Well, that depends a bit on what you want. if you, say, used javascript
to directly populate a field in a html
On Fri, Nov 27, 2009 at 5:58 AM, KONTRA, Gergely wrote:
> Seems like you built your own project, and not using my zip.
>
Yes, because just cut and pasting the template tag into my existing working
test project seemed easier than downloading a zip file. But even after
retrieving the zip file and
Try overriding your AddRestaurantForm's "save" method:
def save(self, commit=True):
self.instance.city = get_object_or_404(City,
name=self.instance.city)
# Finish by passing control back to the normal Django flow:
super(AddRestaurantForm, self).save(commit)
I think th
You can expand your .add() statement slightly, by passing it an object
instead of an id:
request.user.user_permissions.add(Permission.objects.get(name='some
permission name'))
You could alternatively do a lookup with the "codename='some_name'"
instead of the human-readable name. The codename is
It looks like the problem is that you're trying to group by
Technology, but your queryset is in Projects. You could experiment
with the "regroup" template tag
( http://docs.djangoproject.com/en/dev/ref/templates/builtins/#regroup
)
It's a little hard to understand at first, but I think it's prett
Previous post wasn't finished. Wrong key :(
Here's the complete one:
Hi,
I've got the ModelForm and Model shown below.
I'm overriding the 'city' field to get a CharField instead of a City
foreign key.
When saving the Restaurant instance, it returns ""Restaurant.city"
must be a "City" instance".
You could tell Django to designate the 'code' field as the primary
key, which will automatically make it unique. Any forms will then be
forced to identify by the code, rather than some numeric id:
class Country(models.Model):
code = models.CharField(max_length=5, primary_key=True)
Hi,
I've got the ModelForm and Model shown below.
I'm overriding the 'city' field to get a CharField instead of a City
foreign key.
def addRestaurant(request):
if request.user.is_authenticated():
if request.method == 'POST':
form = AddRestaurantForm(request.POST)
spite* us all.
Sorry :)
On Nov 27, 8:27 am, Tim Valenta wrote:
> Django is forced to catch your errors, and then bubble them back up to
> you. If you notice, none of the traceback lines are even in your
> code-- it's all in Python libs or an Django code. The issue is that
> you're not seeing r
Django is forced to catch your errors, and then bubble them back up to
you. If you notice, none of the traceback lines are even in your
code-- it's all in Python libs or an Django code. The issue is that
you're not seeing raw exceptions, but instead you're seeing reproduced
exceptions.
I agree t
I'm trying to query my Postgres database through an ODBC data source
in Windows (Excel & Access).
I've found that Excel does not like mixed case field names and the
recommendation for linked SQL servers is to use all lower case names.
I assume this also applies to other types of connections with t
Hello everyone,
I keep on getting this error with mod_python:
*RuntimeError: class.__dict__ not accessible in restricted mode
*I read that I have to set :
PythonInterpreter main_interpreter
in my httpd.conf, but this doesn't seam to work. Here is my httpd.conf :
ServerName srv1.myapp1.
Thanks to everybody who replied, in the end I downloaded git, cloned
the django repository with with git clone and applied the patch with
git apply and it all worked well.
Paul Hide
On 26 Nov, 12:26, Tim Chase wrote:
> rebus_ wrote:
> >> diff --git a/django/contrib/admin/media/js/admin/
> >> Rel
After much struggling on this same topic, I found that autocomplete
was by far better than a dropdown or a set of chained dropdowns. I
looked at a variety of jquery autocomplete packages, and eventually
settled on this one, which has worked very well for me:
http://loopj.com/2009/04/25/jquery-plu
Thanks. I have the DataTables plugin working so I can filter my
records. Now I just need to work out how to select specific ones from
the table and work with them.
On Nov 26, 9:31 am, David De La Harpe Golden
wrote:
> Stodge wrote:
> > Offering the user a drop
> > down combo box of requirements t
Hi,
how would I extend the field lookup to get somethnng like this:
SELECT ... WHERE EXTRACT('hour' FROM pub_date) > 20
what is for MYSQL:
SELECT ... WHERE HOUR(pub_date) > 20
to get all entries where the timepart of pub_date is grater then 8pm
and how would I change the existing of YEAR, MONTH
Morning
I'm novice in django and i want to install my apllication on my server
production whos on ubuntu i mean install my aplli on apache and i have this
error:
MOD_PYTHON ERROR
ProcessId: 3230
Interpreter:'127.0.1.1'
ServerName: '127.0.1.1'
DocumentRoot: '/var/www'
URI:
Dear Bruno
Great to hear that there are other ZOPE users among us.
When I work with ZOPE I code with dtml. I only found out about ZPT
when I quiz ZOPE and never got familiar with it afterwords. The first
thing they teach you when working with ZOPE is to combine segment of
web pages with . With th
Dear Bruno
Great to hear that there are other ZOPE users among us.
When I work with ZOPE I code with dtml. I only found out about ZPT
when I quiz ZOPE and never got familiar with it afterwords. The first
thing they teach you when working with ZOPE is to combine segment of
web pages with . With th
Dear Bruno
Great to hear that there are other ZOPE users among us.
When I work with ZOPE I code with dtml. I only found out about ZPT
when I quiz ZOPE and never got familiar with it afterwords. The first
thing they teach you when working with ZOPE is to combine segment of
web pages with . With th
I had an IntegrityError come up on transaction commit (using postgres)
today on a production site -- trying to insert an invalid foreign key
value (an admin deleted something she shouldn't have). The problem
was that instead of emailing me the exception like usual, django
logged the exception to m
On Thu, Nov 26, 2009 at 6:31 PM, David wrote:
>
> >>> Listing.objects.order_by("book__courses")
>
> gives me Listings with id's (5, 1, 3, 5, 2, 4), and
>
> >>> Listing.objects.order_by("-book__courses")
>
> gives me Listings with id's (6, 4, 5, 2, 5,1)
On Thu, Nov 26, 2009 at 6:38 PM, David wrot
Seems like you built your own project, and not using my zip.
However, the result IS different.
In my traceback I do not have any snippet referencing customtag.py.
See my trace: http://dpaste.com/hold/125819/
thanks
Gergo
+-[ Gergely Kontra ]--+
|
On 27 nov, 09:35, Allen wrote:
> Dear Andy McKay
> Thanks for the input and you're right, I shouldn't do it this way.
>
> I use to use ZOPE for a couple of years and it has to abilities to
> integrate multiple static webpages just by write a tag with the static
> webpage filename similar to the
On Fri, Nov 27, 2009 at 8:08 AM, NMarcu wrote:
> Hello all,
>
>I have something like this:
>
> $( '#operators_list_div' ).html( ' ' ).load( '{% url
> add_save_view %}',{'action':'action',});
> $( '#address_list' ).html( ' ' ).load( '{% url add_save_view %}',
> {'action':'address_list',});
>
>
Just an experience...
I created a database in mysql not caring much for charsets, and run
manage.py syncdb. All tables were created with the default charset
(iso-8892-1 swedish). Later I noticed my croatian chars were not
right, so I altered some tables and varchar fields to use utf8. This
worked
On Nov 27, 8:21 pm, Gabriel Rossetti
wrote:
> Hello everyone,
>
> this is a bit off-topic, in my apache2 httpd.conf, I see some poeple use
> "SetHandler mod_python" and others (as mentioned in the docs) use
> "SetHandler python-program", what is the difference?
Nothing. They both achieve the sa
Hello everyone,
this is a bit off-topic, in my apache2 httpd.conf, I see some poeple use
"SetHandler mod_python" and others (as mentioned in the docs) use
"SetHandler python-program", what is the difference?
Thank you,
Gabriel
--
You received this message because you are subscribed to the Goo
No, I thought that was just for administrative stuff. I'll give that a
try, thanks!
Gabriel
akonsu wrote:
> hello,
>
> if you set the admin email address and the necessary email parameters
> in your config file then django will send an email with all the
> details to the admin when an exception
Cool, I'll have a look, I was looking for something like that for when
my site is in production, thanks!
Gabriel
Andy McKay wrote:
> You should take a look at Arecibo which has been used by a few
> Facebook apps for that very readson. It has full Django libraries and
> if you don't use it a
Hi Tim, thanks for your respond,
I am doing the tutorial that comes now to set up the admin page.
The browser does not open the webpage:
http://dexhh022.ham.de.eu.airbus.corp:1026/admin/
Browser: Respond : Server not found .. At the same time the
Development server just quits
Workaround:Is it po
Dear Andy McKay
Thanks for the input and you're right, I shouldn't do it this way.
I use to use ZOPE for a couple of years and it has to abilities to
integrate multiple static webpages just by write a tag with the static
webpage filename similar to the filter tag. But I just started django
a month
Hello all,
I have something like this:
$( '#operators_list_div' ).html( ' ' ).load( '{% url
add_save_view %}',{'action':'action',});
$( '#address_list' ).html( ' ' ).load( '{% url add_save_view %}',
{'action':'address_list',});
In view I have like this, that don't work on:
#list of availibl
64 matches
Mail list logo