Hi,
This is a bit of a strange scenario.
We have a simple Django application used to maintain a database of
newspaper/journal articles. We're extensively using the django-admin
as part of this app.
Currently, we're having issues getting a production environment with
Python provisioned (corporate
I have just one question. While I'm editing the source of the project,
to see the result I have always to restart the server or there is
another way?
--
K.
Blog Personale: http://www.karimblog.net
--
You received this message because you are subscribed to the Google Groups
"Django users" group
On 29/10/2010 6:33pm, Victor Hooi wrote:
Hi,
This is a bit of a strange scenario.
We have a simple Django application used to maintain a database of
newspaper/journal articles. We're extensively using the django-admin
as part of this app.
Currently, we're having issues getting a production env
I must still be missing something here. If all you want to do is to
read CSV file and save the data in the database, I still don't
understand why you use the forms machinery.
You only *need* to use the data model, e.g.
from myapp.models import Data
csvfile = csv.reader('something.csv')
for line
Hi !
You could also give django-cube a try :
http://code.google.com/p/django-cube/
Unlike Mikhail's app, the aggregates are not efficient (because no
optimization is made, I am working on this), but this is more than
enough if you have a reasonable amount of data (less than millions of
rows !!!).
Hey Karim,
The best way to save yourself time and effort is really to use the
Django development server when testing out alterations.
Max,
Actually I mentioned Uwsgi,
Perhaps if you are going to state potential bugs with software you
could be so kind as to add the specifics in your posts and n
Dear Rob,
Am Freitag, den 29.10.2010, 02:45 -0700 schrieb Robbington:
[…]
> Actually I mentioned Uwsgi,
>
> Perhaps if you are going to state potential bugs with software you
> could be so kind as to add the specifics in your posts and not just
> ambiguous statements such as "Do not use the uw
django-admin.py startproject myproject command not responding anything
please help me with suggestion Response comes as like this
i installed python2.5 and django official version and also copied admin.py
in scripts but when i use django admin-py startproject myproject is not
working it s showing t
Hi All,
I'm building an app for small retail chain management. It requires
inventory/salespeople/wages etc. management. There 2 kinds of users:
updaters (non-tech managers that are responsible sales locations) and
viewers (main office managers that control the organization).
1 Would django admi
my any of the sub command is not working thanks for reffering
--
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
django-users+unsubsc
Hi, everyone.
When I call to_locale on a language code, it acts as I expected. But,
when I call it on an already formated locale, it will lowercase the
region code.
>>> from django.utils.translation import to_locale
>>> to_locale('en-us')
'en_US'
>>> to_locale('en_US')
'en_us'
>>> to_locale('en_u
Hi, I must say I'm kinda lost here. Any help would greatly be
appreciated!
I wish to have two seperate admin sites on the same django project.
First thing I did, was create the app: alternate_admin
within alternate_admin, I have admin.py where I defined the following:
from django.contrib.admin.s
Dear Paul and Max,
As I mentioned before please email me directly should you wish to
continue this discussion further, and or create a new post. I feel it
unfair to discuss this in this particular forum as it is unrelated to
the original subject matter.
I meant no offense to Max, I can see how th
Hi,
first of all, if you will be sending emails like these, you're
likely to get ignored by people who are otherwise happy to anser
questions like yours (hint: 3 consecutive emails about the same topic
in 2 conferences, "anonymous" user etc.)
Now for the real "answer". You have not told us an
On Oct 29, 2010, at 5:45 AM, Robbington wrote:
> Actually I mentioned Uwsgi,
You missed where I referenced, where was here:
On Oct 28, 2010, at 2:27 PM, Karim Gorjux wrote:
> Now I solved all my problems working with settings.py. Seems that also
> the debug works, but If I'll be again in troub
On 29/10/10 00:04, Tom Eastman wrote:
That's correct, but I want to take a 'Place' object, that doesn't have a
'restaurant', and turn it *in to* a 'Restaurant' by adding the
corresponding row to the Restaurant table.
So you have a place.
p = Place(name="3rd Circle of Hell")
p.save()
This sh
Rob,
I don't want to email you directly. I'm sure you're a nice guy and everything,
but I'm on this list to contribute to the list. Please stop asking this. That
*is* obnoxious.
I'm sorry you see my comments as unhelpful or "unconstructive[sic]", however
please remember you are not the only o
Generally, yes.
If you're using a socket, you can rm the socket path each time you update. That
will avoid the need to restart Cherokee.
On Oct 29, 2010, at 4:31 AM, Karim Gorjux wrote:
> I have just one question. While I'm editing the source of the project,
> to see the result I have always to
"Anyway, my intent here was to help. It's ridiculous how everything
has to be reduced to pedantic argumentation and sanctimonious advice
about what to post where."
I was trying to be courtesy towards Karim as this is his post.
Consider, Max, whether this post would have been better had you not
co
Karim,
If you hve not already quit reading these posts(I wouldnt blame you if
you had) I want to once again apologise.
I only posted as I was glad to see someone else using Cherokee and
wished to offer a small insight into another way of serving python
code.
The whole thing has become idiotic a
This may be of use to anyone using any version of Cherokee prior to 1.09:
http://lists.octality.com/pipermail/cherokee/2010-September/013432.html
There are several threads that detail the manual set up process. But the key
here is that the wizard is, as Roberto states, "(currently) totally broke
Hi there!
I'm trying to write a filter that can be used inside of a template
that is used for generating latex files.
The filter should replace the '|' char with '\'. Simple:
@register.filter("verb_safe")
def verb_safe(val):
return str(val).replace('|', '\|')
is outputting me '\\|'
I'm lit
We have done this before and used something like the code below. This
sample is pretty basic.
def fixchar(string,char):
#fixes chars for latex
if char == '<':
newchar = '$<$'
elif char == '>':
newchar = '$>$'
elif char == '~':
newchar = '\\~{}'
On Fri, Oct 29, 2010 at 3:41 AM, Mike Dewhirst wrote:
> That looks a bit 'under the radar' with regard to locked roadmap etc. Why
> not dig the pit a bit deeper and make your own server with Apache, Django
> and your Oracle db. Much cleaner than Apache/Django everywhere.
also, if it's going to be
I'm finding conflicting info regarding preferred server
configurations.
I'm using Nginx for static, passing off to Apache/mod_wsgi for django
stuff. Currently, wsgi is in daemon, and I'm using the worker MPM.
>From some sources I've seen that is ideal, but I notice in the django
docs that prefork
This will work. Concurrency is Oracle's problem. Each Django is a
client, and gets a separate connection to Oracle. Transaction
management is bread and butter to the big databases.
That said, you may not need apache. This sounds like a group of
cooperating users with a very low request rate, s
Hi All,
I'm trying to allow some flexibility for my end users. I want to
support the uploading of multiple file archive types (tar.gz,
tar.bzip2, zip, rar etc).
I want to use python-magic to guess the filetype from the files magic
number and then use the appropriate decompression modules to get at
If it were my project, I'd probably add this kind of custom field to
your mapping:
mapping = {
# list the normal columns first... then:
'full_name': ['user__first_name', 'user__last_name'],
}
Then your render code would be something like this:
def render(self):
for row in sel
And again, I solve a problem exactly 14 seconds after asking it...
DOH!
I had a hander method that was reading the file object prior to the
tests. So, the "empty" was actually correct.
I changed the order of the methods and it alls works as expected now.
Oops.
W
On 29 October 2010 18:15, wawa
Jirka
I need an easy method inside the admin to upload the csv file with an
web interface. I guess with your method the admin will need access to
the server and the command line, and something like this is not what i
try to do, because the admin (not me) is not a django developer, not
even a user
Forgot to say:
If I replace:
(r'^', include(alternate_admin.urls)),
with
(r'^', include('alternate_admin.urls')),
I can see the models I've got registered with my alternate admin but
the url reversing is messed up, i.e.: logout does not point to /logout
but to /admin/logout (while /admin/logout
Hi Tom,
You might want to have a look at inheritanceCastModel from
django-model-utils by Carl Meyer
http://github.com/carljm/django-model-utils
Best regards,
Miguel Araujo
2010/10/29 David De La Harpe Golden
> On 29/10/10 00:04, Tom Eastman wrote:
>
> That's correct, but I want to take a 'Pla
Good Morning!
I am looking for Django/Python developers to join the team of one our
clients in Atlanta, GA working on one of the largest Django apps EVER
in - scaled to serve web,mobile, and more for 100+ prominent
newspaper, TV, and radio sites! There are 3-5 job openings and they
are looking fo
On Fri, 2010-10-29 at 07:18 -0700, Jack wrote:
> only US Citizens or Greencard holders need apply
please do not put things like this on an international list
--
regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS at AU-KBC
--
You received this message because you are subscribed to the Google Gr
On Fri, Oct 29, 2010 at 10:27 PM, Kenneth Gonsalves wrote:
> On Fri, 2010-10-29 at 07:18 -0700, Jack wrote:
> > only US Citizens or Greencard holders need apply
>
> please do not put things like this on an international list
>
I hear that there are many many unclaimed H1B slots :)
But OTOH, i don
Hi,
You will need to go step by step. First you ask the user for the reviewer
with a form. Then the user has to submit the form. You manage your input
form and see if the data for that reviewer already exists, if it does, then
you load initial data in the second form. Now you redirect the user to
Hi everyone!
I hope this message is not seen as spam. Today I released my first
Django-app as Open Source on Github. It's called django-rules. It's an
authorization backend that you can use to flexibly manage per object
permissions in your Django projects. I find it very useful and I'm sending
thi
Hi all,
I've been working in django for a while now, but am still wrapping my
head around the more complex queryset features.
I have something like this:
class Foo:
name = CharField()
bars = ForeignKey(Bar)
widgets = ForeignKey(Widget)
I can do this:
Foo.objects.extra(select={
>From a raw SQL standpoint, I've figured out that these constraints
need to be in the HAVING clause, not the WHERE clause. But it looks
like HAVING is not exposed through the .extra() function, which would
seems logical. It appears you can create extra fields, but due to
this lack you can't filte
Hi,
Try always not to think SQL and not to use extra. Most of the times there is
an alternative without extra. Extra is advanced.
class Node(Model):
widgets = ForeignKey(Widget)
This query will give you all the different nodes that have the foreign key
widgets set to something different t
Hi,
I'm creating an online questionnaire for my local community college,
and hitting a brick wall dealing with formsets. Please can someone
point me in the right direction?
On a questionnaire, you have one or more questions which will require
either an essay answer or multiple choice answers. Whe
Hi,
Do you think it is relevant to rewrite databrowse to use the new class-
based generic views ?
I'm motivate to work around this and submit a patch, but want first to
discuss about what to do..
IMHO, contrib.databrowse (using class-based views) can provide a
reusable/extendable "base" for rapid
> i dont have time i need to start development within a month..
>
> plz tell me all those crucial topics that i should learn
>From the little information I have about your situation I'd say your
better of using a readymade CMS like Wordpress. As much as I love
Django, I do think that you'll be s
Just solve my problem.
This was hinted in the doc but wasn't really clear anyways.
The registration has to be made in the same file instantiating your
admin subclass.
I'll submit a doc revision for that.
--
You received this message because you are subscribed to the Google Groups
"Django users
I'm responsible for writing a customer service application for a
django project, and it needs to be done by Monday (it's friday now).
I'm currently getting it built with the Django Admin, but the bosses
think the interface is too complex for the "knuckle-draggers" that
commonly answer phones. I'm w
On Fri, Oct 29, 2010 at 3:13 AM, Alex Kreimer wrote:
> Hi All,
>
> I'm building an app for small retail chain management. It requires
> inventory/salespeople/wages etc. management. There 2 kinds of users:
> updaters (non-tech managers that are responsible sales locations) and
> viewers (main off
I have always had the notion that the admin interface is more about
adding data to the system quickly rather than being the system itself,
the admin interface is very powerful indeed, but I think you may have
better customization/simplification options on your own and reserve
the admin interface fo
Hi,
Yes. I wrote a customer care app with django for a call center with 40+ agents.
It is now mostly have custom views and actions but the default django admin was
used for a couple of months without any issues. I used proxy models to only
show fields in the add client view they need to see(aga
Whenever I try to execute a python script that is located in the
/usr/local/bin, python gives me the error 'python: can't open file
'django-admin.py': [Errno 2] No such file or directory'.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
49 matches
Mail list logo