Hi
I've run into a little problem with the dump_bulk() function of
treebeard. I'm using pimentech's jsonrpc decorator to handle my ajax
requests. However, this prevents the dump_bulk() function to execute
normally. I've discovered that this is due to the django's serialize
implementation that it u
Hello
Is there a way to have an audit trail record my entry on a https page/
site?
as well as gather the data displayed and update another database for
future data retrieval?
Please be generous with explanations, links, info...
thx
--
You received this message because you are subscribed to th
On Thu, Jan 27, 2011 at 3:12 PM, Torsten Bronger
wrote:
> Hallöchen!
>
> Russell Keith-Magee writes:
>
>> On Thu, Jan 27, 2011 at 1:19 PM, Torsten Bronger
>> wrote:
>>
>>> [...]
>>>
>>> I had looked at the raw mail message, and the text/plain part
>>> looked exactly the same as I uploaded -- real
On Thursday, January 27, 2011 9:15:52 AM UTC+11, 3lancer.eu wrote:
>
> Hi,
>
> More a Python thing, than Django.
>
> You should never put custom code in the django package.
>
> Generally you can put SWFUploadMiddleware inside, say, middleware.py in the
> same directory as your settings.py.
>
>
I've only recently started playing with Django to undertake a technology
assessment of the various frameworks available. As part of the assessment it
needs to integrate with a legacy Oracle XE database (I know) which will
contain customer data, with the default database being MySQL and containin
>
> That isn't exactly mod_wsgi's fault. You should go have a read of:
>
> http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html
>
> some time and then you might understand the horrible things that the
> development server does with paths.
>
> :-)
>
Yes, I didn't state it's mod
Hi groups users :)
The thing is. I have one django app serving different sites.
site1.myapp.com
site2.myapp.com
The users login via a 3rd party SSO system which is then
redirected(inkl. a valdiation POST) to https://myapp.com/auth/
I can only choose one destination for this POST, so it has to be
On Thu, Jan 27, 2011 at 11:59 AM, PeteDK wrote:
> Hi groups users :)
>
> The thing is. I have one django app serving different sites.
>
> site1.myapp.com
> site2.myapp.com
>
> The users login via a 3rd party SSO system which is then
> redirected(inkl. a valdiation POST) to https://myapp.com/auth/
Hi. Im trying to create a web-site with a book from pact.com (Django
website development) as a basis. It has gone pretty well so far, but i
have encountered a problem when changing a form in models.py from
ForeingKey to OneToManyKey.
I think i know where the problem is, but i cant find a resolution
On Thu, Jan 27, 2011 at 9:41 AM, Pacem wrote:
> Hi. Im trying to create a web-site with a book from pact.com (Django
> website development) as a basis. It has gone pretty well so far, but i
> have encountered a problem when changing a form in models.py from
> ForeingKey to OneToManyKey.
You chang
Hallöchen!
Russell Keith-Magee writes:
> On Thu, Jan 27, 2011 at 3:12 PM, Torsten Bronger
> wrote:
>
>> [...]
>>
>> Thank you, you are probably right. I invesitage this; I just
>> sent an email to our IT department. It may be though that all I
>> can do is to patch my local Django branch becau
Hi,
Thanks for the advice, as usual with me, it's thrown up more questions... :D
On 26 January 2011 12:20, Adrian Bool wrote:
> I have two models, the first is a 'change request ticket' and the
> second reflects the status of that ticket. They are linked by a
> ForeignKeyField on the first tabl
Hi hi,
Wanting to make a simple site that hosts images and videos. Like a
portfolio page.
Are there any good apps specifically for uploading a video and
displaying it in a nice player?
Or is the better option to just upload it with something like
filebrowser and embed the link into flatpages?
An
Could you try with this
elif request.method == 'POST':
print request.raw_post_data
response = HttpResponse(mimetype='text/xml')
response.write(request.raw_post_data)
return response
Regards,
Anurag
On Thu, Jan 27, 2011 at 1:07 PM, sami nathan wrote:
> Hi
> No
I`m currently implementing such a solution myself, but it`s nowhere
near even alpha-state so I got noe code to share. Please let me know
what you find.
Regards,
Thomas
On Thu, Jan 27, 2011 at 2:30 PM, mongoose wrote:
> Hi hi,
>
> Wanting to make a simple site that hosts images and videos. Like
On 27 Jan 2011, at 13:28, Matthew Macdonald-Wallace wrote:
>def save(self,*args,**kwargs):
>if not self.id:
>self.created = datetime.date.today()
>if self.Status.ClosesChangeRequest == True:
>self.completed = T
On 26 jan, 22:30, Adrian Bool wrote:
> Hi Bruno,
>
> On 26 Jan 2011, at 12:55, bruno desthuilliers wrote:
>
> > Some will talk about "OO/relational impedance mismatch" (ok, I cheated
> > - Daniel just did;)), but I don't see it that way as far as I'm
> > concerned - I'm using a relational model wr
Thanks I figured it out. I should just use request.path I used
request.get_full_path() which returns the whole request including the ?
code=xxx which messed me up.
On Jan 26, 12:07 am, Matias Aguirre wrote:
> Hi,
>
> Is your request.get_host() the same defined in Facebook app settings? (Web
> s
> You changed it to a OneToOneKey (OneToMany is another way of saying
> ForeignKey). OneToOneKey relationships are modelled as a single
> attribute, not a set, so it would simply be
>
> snarveier = bruker.brukersnarvei
>
> Using "python manage.py shell" you can explore what attributes your
> object
On Thu, Jan 27, 2011 at 2:01 PM, Pacem wrote:
>
> i can fin "brukersnarvei" in the attributes, so what am i missing?
>
> the error message:
> Brukersnarvei matching query does not exist.
>
This means that there is no entry in the Brukersnarvei table with that
user_id. If you want to automatically
Have a look at django-filer by Stefan Foulis. There's also a plug-in
for use with django-cms, if you wish.
https://github.com/stefanfoulis/django-filer
--Stuart
On Jan 27, 7:30 am, mongoose wrote:
> Hi hi,
>
> Wanting to make a simple site that hosts images and videos. Like a
> portfolio page.
On Jan 26, 4:14 pm, bvdb wrote:
> On Jan 26, 3:22 am, Russell Keith-Magee
> wrote:
>
> > Django doesn't have a built-in representation of a view. ..
>
> > You can define a Django model as a wrapper around a view by marking it
> > managed, but that doesn't make the model read-only -- it just preve
Fantastic! Thanks for your great work, guys.
--Stuart
On Jan 26, 3:05 pm, Jonas Obrist wrote:
> We are very proud to announce that a few moments ago, the django CMS
> team released the final release for version 2.1.0. This new version adds
> new exciting features to our CMS and fixes many issu
OK. I'll check all of that out, including the article. In the meantime
can you possibly explain the "title" field shown coded on the form in
the Django file upload document? It's shown coded on the form but I
don't think it's referenced anymore after that in the document and I
would like to know wh
Thanks! guys for all the help
regard,
Richard
On Jan 27, 6:45 am, Piotr Kilczuk wrote:
> > That isn't exactly mod_wsgi's fault. You should go have a read of:
>
> > http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html
>
> > some time and then you might understand the horrible
Hi,
I have inherited an old project which I believe has unused views
(useless code), does anyone know of a tool to check which views are
being used? I think it shouldn't be too hard to make one using resolve
but maybe there is one already or maybe I'm talking nonsense.
It doesn't have tests, so I
Hi,
> I have inherited an old project which I believe has unused views
> (useless code), does anyone know of a tool to check which views are
> being used? I think it shouldn't be too hard to make one using resolve
> but maybe there is one already or maybe I'm talking nonsense.
> It doesn't have te
Unless someone comes up with a smarter idea (I'm sure they will :),
I'd take website logs for the last month or so (depending on your
site), build a list of all successful requests URL's on your site and
then map those to views on your site using standard URL resolver. That
should tell you what vie
I'm trying to code and implement a file upload screen. I've looked at
the documentation at:
http://docs.djangoproject.com/en/1.2/topics/http/file-uploads/
and the document shows a simple upload form called UploadFileForm
which is shown with two fields coded for it. I'm assuming that the
field nam
I think this is trivial considering that the example does not use
request.POST['title'] They must of just forgot to use the title field in the
view?
One practical example could be to use the title as the filename which you
intend to store in your filesystem. You can do this by changing the filenam
On Thursday, January 27, 2011 3:53:57 PM UTC, hank23 wrote:
>
> I'm trying to code and implement a file upload screen. I've looked at
> the documentation at:
>
> http://docs.djangoproject.com/en/1.2/topics/http/file-uploads/
>
> and the document shows a simple upload form called UploadFileForm
So then the "title" field isn't really related to the file field which
will represent the actual file that I'm trying to upload then right?
And my form really needs to have only the FileField for the file that
I plan to upload then right?
On Jan 27, 10:51 am, Daniel Roseman wrote:
> On Thursday,
On Jan 27, 3:53 am, Nathanael Dyke wrote:
> I've only recently started playing with Django to undertake a technology
> assessment of the various frameworks available. As part of the assessment it
> needs to integrate with a legacy Oracle XE database (I know) which will
> contain customer data, wit
hi,
I execute the command: python manage.py createsuperuser --
username=jack --email=j...@f.com
and an error occurred:
Traceback (most recent call last):
File "manage.py", line 11, in
execute_manager(settings)
File "/usr/lib/python2.6/site-packages/django/core/management/
__init__.py"
Hello everyone,
I'm a while busy with coding in Django applications.
Now i have a question, because what I want to do,
doesn't work right.
if I request the url: http://localhost/shorts/
I have a short template who gives me messages.
This template is loaded in a default template base.html.
Now i
I'm not sure whether this is your problem, but file permissions
can be fussy with Windows. You might try going into the
manage.py shell and trying to open the file with python's
open builtin, e.g., if the database file already exists:
f = open('path_to/db_file')
or if it doesn't:
f = op
I think you're looking for context processors.
http://docs.djangoproject.com/en/dev/ref/templates/api/#writing-your-own-context-processors
You write functions that add to the context each page receives. That info is
available in the template regardless of which view called the rendering.
Shawn
On Thursday, January 27, 2011 6:42:29 PM UTC, maki maki wrote:
>
> hi,
>
> I execute the command: python manage.py createsuperuser --
> username=jack --email=ja...@f.com
>
> and an error occurred:
>
> Traceback (most recent call last):
> File "manage.py", line 11, in
>
> File "/usr/li
Thanks Mike & Russ,
I was using 0.96 for development with Google App Engine.
Stubbornly. I really didn't HAVE to use GAE. I picked it as a
hosting & auth headstart.
My rampup has been embarrassingly slow (Python, Django, Eclipse
newbie) so I think I'll switch over to a newer version of Django
I see now what you mean. I can really use that.
Thanks for the answer!
Michael
2011/1/27 Shawn Milochik
> I think you're looking for context processors.
>
>
> http://docs.djangoproject.com/en/dev/ref/templates/api/#writing-your-own-context-processors
>
> You write functions that add to the cont
Hi,
I have been trying to dynamically change CHOICES options of a
fields, which is modified inside the __init__(self,) of my model
class. I can see my choices being modified in the __init__(self,), BUT
using a modelform the final result is NOT considering the dynamic
changed CHOICES.
Does any
Yes, it's an appropriate server and yes, both servers are amd64.
I did figure out the issue: The new FreeBSD install had the default
home directory for the user www set to /nonexistent -- once
I changed that to a real directory, and dropped a www:www 755
directory in there & linked /root/.python-e
hello im having a terrible time just showing images in my web. i cant find
out how it works. can some one show me how to just post a image in my web??
how to place the setting rigth the media root and url??
thak everybody for your help
--
Saludos.
Nicolas Lubkov
Ing. Informatica de gestion
--
In your __init__, after the super().__init__():
self.fields['state_province'].choices = dynamic_options
Shawn
--
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 fr
Are you asking about images you upload using django that appear in
individual content items, or are you asking about "static" images, typically
used by your CSS as background images or whose url is encoded in
img tags directly in your templates?
The former is a harder question and requires much mo
I am running Django 1.2.4 and mod_wsgi. My application is running
fine.
My admin won't load correctly.
wsgi_handler.py
---
import os
import sys
PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
sys.path.append(PROJECT_ROOT)
sys.path.append(os.path.join('/home/amr/djan
Hi Octopus,
What do you mean by: "won't load correctedly"?
Is there an admin interface at /admin/ ? If not, did you enable the
admin in your settings.py and in your urls.py?
Is there one or more object missing from the admin interface? If there
is one missing, maybe you've made an error in your
I have a file upload screen coded and working, whenever I enter all of
the data (original file selected from the browse button; as well as
target file path and name entered in a separate textbox) at one time.
But when I leave the destination file field blank after selecting the
original file an err
I am referring to Django's admin site. By not loading correctly, I
mean the admin site works, but does not display the nice look and feel
that displays when using Django's built in web server.
"Do the static files (css, js) not load? Then maybe your paths in
settings.py are not configured properly
Hello,
How can I customize a form by the user who is logged in?
For example, if the user is_superuser(), i need to display the
standard admin form, but if the user is another one, show only some
fields and not all model fields. For this, I coud use
ModelAdmin.fields (or exclude, or readonly_fields
Thanks for your replies.
I had runned `manage.py syncdb` and the db file exists.
I can open the db file in django's manage shell:
>>> f = open('./data/db.db')
>>> f
the permission of the db file is :-rwxrwxrwx
the version of python on cygwin is
Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01)
Try this:
ADMIN_MEDIA_PREFIX = BASE_URL + 'media/admin/'
On Jan 28, 1:48 am, octopusgrabbus wrote:
> I am referring to Django's admin site. By not loading correctly, I
> mean the admin site works, but does not display the nice look and feel
> that displays when using Django's built in web server
HI,
How to write joins in django,i have gone through below django documentation
,but joins are not working for my model
http://www.djangoproject.com/documentation/models/many_to_many/
http://docs.djangoproject.com/en/1.2/topics/db/queries/#lookups-that-span-relationships
and some blogs
My Mod
On Thu, Jan 27, 2011 at 5:30 PM, hank23 wrote:
> I have a file upload screen coded and working, whenever I enter all of
> the data (original file selected from the browse button; as well as
> target file path and name entered in a separate textbox) at one time.
> But when I leave the destination
I'm following the tutorial at [1]. I'm trying to add the app to the
admin site. I've run manage.py syncdb, and I've restarted the dev
server. Any hints? The appropriate files that I was instructed to modify
can be seen at [2]. Request more information and I can provide it.
Thank you!
~Corey
[1] -
On 28 January 2011 12:16, sushanth Reddy wrote:
> HI,
>
> How to write joins in django,i have gone through below django documentation
> ,but joins are not working for my model
>
> Class working(models.model)
> w_name =models.ForeignKey(Profile, db_column='name')
> monday = models.IntegerFi
On 27 January 2011 14:26, Casual Coder wrote:
> Is there a way to see what all got imported from django?
In Python, you can see what is available in each imported module by
using the dir function, e.g.
>>> import django
>>> dir(django)
['VERSION', '__builtins__', '__doc__', '__file__', '__name
Hi all,
I have a model that ruffly looks like so,
Class Member(model);
member_id = model.Integerfield(primary_key=True)
organization = model.foreignerkey(primary_key=True)
transorg = model.foreignerkey()
bo_name = model.foreignerkey()
member_create
You could use signals[1] to update cache on save event, but I think you
are approaching the issue in the wrong way, why not paginate[2] the
result?
Regards,
Matías
[1]: http://docs.djangoproject.com/en/dev/topics/signals/
[2]: http://docs.djangoproject.com/en/dev/topics/pagination/
Excerpts from
hi Sam,
Here is example model:
class Profile(models.Model):
name = models.CharField(max_length=50, primary_key=True)
assign = models.CharField(max_length=50)
doj = models.DateField()
dob = models.DateField()
class Meta:
db_table = u'profile'
def __str__(sel
On 28 January 2011 16:07, sushanth Reddy wrote:
> hi Sam,
>
> Here is example model:
>
> class Profile(models.Model):
> name = models.CharField(max_length=50, primary_key=True)
> assign = models.CharField(max_length=50)
> doj = models.DateField()
> dob = models.DateField()
>
>
Thanks a ton sam...
--
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
django-users+unsubscr...@googlegroups.com.
For more options,
You can use proxy models. Refer to
http://stackoverflow.com/questions/2223375/multiplue-modeladmins-views-for-same-model-in-django-admin
On 1月27日, 下午4时22分, Mario8k wrote:
> Hello,
>
> How can I customize a form by the user who is logged in?
> For example, if the user is_superuser(), i need to dis
I want to make things simple and following django style.
So here's my question
In the view, I have one form for search input and one pagination table
list results.
The form has quite some fields mostly CharField.
When submit http POST/GET, I want to update table list, but don't want
to clean up my
64 matches
Mail list logo