Deleting FileField Content

2013-10-24 Thread Timothy W. Cook
When I delete an object that has a FileField I expected that the associated file would also be removed. But alas, this doesn't happen. At least not through the admin interface. Is there something I am missing? Thanks, Tim -- MLHIM VIP Signup: http://goo.gl/22B0U =

migration problem when running test on RC1

2013-10-24 Thread Matthieu Rigal
Hi all, I had already post it as an answer to a previous problem, but since I did not see any answer, I create a new topic. On a RC1, just after upgrading from b4 and without changing nothing, this is what I get when trying to run the tests : It tries to apply migrations on the test DB it is c

Re: Deleting FileField Content

2013-10-24 Thread Russell Keith-Magee
On Thu, Oct 24, 2013 at 4:32 PM, Timothy W. Cook wrote: > When I delete an object that has a FileField I expected that the > associated file would also be removed. But alas, this doesn't happen. At > least not through the admin interface. > > Is there something I am missing? > This is by desig

Re: Deleting FileField Content

2013-10-24 Thread Timothy W. Cook
Thanks Russ. That makes sense of course in the bigger picture. I was living in my own little use-case. :-) On Thu, Oct 24, 2013 at 8:00 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Thu, Oct 24, 2013 at 4:32 PM, Timothy W. Cook wrote: > >> When I delete an object that has

Seeking Code Review Consultant/Mentor

2013-10-24 Thread D Stevens
Greetings Can anyone recommend a Python/Django mentor for hire? I was recently made redundant and am trying to retool and repackage myself as a Django developer and, while the community and documentation is excellent, I need to move quickly. So I've been devouring the official documentation,

Re: Bug in admin models?

2013-10-24 Thread Derek
Yes, its there - the line after 'suit'. On Wednesday, 23 October 2013 19:22:54 UTC+2, Odin wrote: > > Can't see the django.contrib.admin in INSTALLED_APPS. > > > 2013/10/23 Derek > > >> I am trying to add a model entry, via the admin; I get this error (which >> has not happened before), running D

django-dajaxice

2013-10-24 Thread Zoubeida
Hello all, i have configured ajaxice in my templates and i have created an ajax.py file i have a function when i call it from my template all my code instructions is executed but when it finish i have an error [15:40:31,597] TypeError: dajaxice_callback is not a function @ /static/dajaxice/d

Re: Bug in admin models?

2013-10-24 Thread Nigel Legg
In installed apps you have s2.myapp, the traceback is just myapp. Also you have 's2.myapp, in the installed_apps, should it not be 's2.myapp', (ie missing the end quote)? Cheers, Nigel 07914 740972 On 24 October 2013 14:20, Derek wrote: > Yes, its there - the line after 'suit'. > > > On Wed

Unable to load a modified tabular.html

2013-10-24 Thread Vittorio
Context: Mac OS X 10.7, Django 1.5.4 using Admin I was able to taylor the admin/edit_inline/tabular.html to eliminate some redundant info (such as the obsessive label indicating from which Object is extracted the inline record, repeated record by record!) in my many inlines putting the revised

Re: Django custom authentication

2013-10-24 Thread Praveen Madhavan
I checked for the session cookie... It is getting created, could it be the django version ? I am using django 1.5 and I found few django openid apps not working on 1.5 . On Tuesday, 22 October 2013 20:44:16 UTC+5:30, Praveen Madhavan wrote: > > Tom > > Thanks for the response, here is my view >

Re: Unable to load a modified tabular.html

2013-10-24 Thread Pantelis Petridis
You don't have to create any custom view. Just set the template in your inline model class MyInline(admin.TabularInline): template = 'path/to/the/template.html' Hope this helps! On 10/24/2013 06:32 PM, Vittorio wrote: Context: Mac OS X 10.7, Django 1.5.4 using Admin I was able to taylo

Re: Unable to load a modified tabular.html

2013-10-24 Thread michael . zqm
You may try this: 1. Create new folders under $MYPROJECT named my_templates/admin/edit_inline/ 2. Save your customized tabular.html under my_templates/admin/edit_inline/ 3. Edit settings.py as below: TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/

Advice for new Dev - package or roll own

2013-10-24 Thread James P
A little help / advice is needed here. I am getting back into web development since before the days of nice frameworks and decided to learn Python and use Django to get my web app going. My app has quite a few e-commerce features, but the cart/ordering/shipping/tracking aspect of my app is mayb

Re: Unable to load a modified tabular.html

2013-10-24 Thread Vittorio
It helped indeed. Thank you very much! Vittorio Il giorno 24/ott/2013, alle ore 19:00, Pantelis Petridis ha scritto: > You don't have to create any custom view. Just set the template in your > inline model > > class MyInline(admin.TabularInline): > template = 'path/to/the/template.html' >

Re: Advice for new Dev - package or roll own

2013-10-24 Thread Avraham Serour
I think it does make sense to plug a shop app in the project rather than making something from zero, if the project has that much need for customization than it would make sense to use a more lightweight app. Same question could be asked if it make sense to develop my solution using a framework l

1.5.4 /static/ serving 500 error

2013-10-24 Thread Thomas Murphy
Hi all, with structure |myproject |---static |---picture.jpg |--myproject ---settings.py settings.py import os MYPROJECT_PATH = os.getcwd() DEBUG = True *** STATIC_ROOT = os.path.join(MYPROJECT_PATH, 'static') STATIC_URL = '/static/' STATICFILES_DIRS = (STATIC_ROOT,) in Django 1.

Re: Three Django forms in different tabs in one template?

2013-10-24 Thread Faridul Islam
Hello Stodge, I was searching for an example of mutli-tab pages within a single view using Django and found your post which almost three years old. I am not sure whether you still work with Django or not. If you do, I will appreciate if you can share one example of it with me. FYI, this is my

Re: How to insert a inline form inside a form wizard?

2013-10-24 Thread Fabio Caritas Barrionuevo da Luz
Hello Russel. First, sorry for reviving this topic. Thanks for the comment on this topic, however, this matter is still not clear to me. You will also create a blog post explaining the details of CookieWizardView / SessionWizardView + formset and inlineformset? I am a relatively new django Us

Sessions memory issue

2013-10-24 Thread John Carlo
Hello everybody, I'm a newbie with Django, I love it but something it's not clear to me. So I'm here to make a question. Thank you in advance. I have an application that has some istances of custom classes I wrote. At every client request, every istance creates a big list of strings. Then, a f

Re: 1.5.4 /static/ serving 500 error

2013-10-24 Thread Mike Dewhirst
On 25/10/2013 6:14am, Thomas Murphy wrote: Hi all, with structure |myproject |---static |---picture.jpg |--myproject ---settings.py This could be improved in the sense that Django projects usually consist of one or more apps - like this ... |myproject |---static | (empty unt

Re: Sessions memory issue

2013-10-24 Thread François Schiettecatte
John There are a couple of ways you can handle this, either you store the files in a database as a TEXT blob, or as a temporary file somewhere. And you can identify your users with request.user if they have to have an account, or request.session.session_key if they don't, the session_key is th

Python shell displays Segmentation Fault: 11 after upgrade to Mavericks OS

2013-10-24 Thread Don Fox
python manage.py shell Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from polls.models import Poll, Choice >>> Poll.objects

Re: Python shell displays Segmentation Fault: 11 after upgrade to Mavericks OS

2013-10-24 Thread Thomas Lockhart
On 10/24/13 2:34 PM, Don Fox wrote: ... Segmentation fault: 11 This type of thing just started after upgrade. I assume there's a connection. I found a similar symptom with another application after doing piecemeal updates in MacPorts packages, and my problems went away with a more rigoro

Re: Python shell displays Segmentation Fault: 11 after upgrade to Mavericks OS

2013-10-24 Thread donarb
On Thursday, October 24, 2013 2:34:13 PM UTC-7, Don Fox wrote: > > > > python manage.py shell > > Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) > > [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin > > Type "help", "copyright", "credits" or "license" for more information. >

Re: [ANNOUNCE] Django 1.6 release candidate available

2013-10-24 Thread tim
We don't typically repeat the list of deprecated features that were removed. The release notes contains this sentence: We’ve also dropped some features, which are detailed in our deprecation plan." You can look under the "1.6" sectio

Re: [ANNOUNCE] Django 1.6 release candidate available

2013-10-24 Thread tim
Yes, it will be tagged at some point. On Wednesday, October 23, 2013 6:14:45 AM UTC-4, Matthieu Rigal wrote: > > Do you plan to release the C1 with a tag also on Github ? I'm used to grab > versions from there... > https://github.com/django/django/releases > > Thanks, > Matt > > On Wednesday, Oct

Re: Three Django forms in different tabs in one template?

2013-10-24 Thread Joey Chang
I think you can try to use a base view to handle the request and distribute to sub functions. like: def base_view(request): form_type = request.REQUEST.get("form_type", "1") if form_type == "1": result = sub_view1(request) ... else: result = sub_viewn(request)

problem with template

2013-10-24 Thread Harjot Mann
Actually in my app, when a register called suspence register is made, it is made according to the number of tests done by the client for each job_no, so if a person has done two or more tests, then there are some fields which are common as given in the screenshot, as you can see that serial number

Re: problem with template

2013-10-24 Thread Harjot Mann
On Friday, October 25, 2013 9:55:20 AM UTC+5:30, Harjot Mann wrote: What should I do for this?. Here is the screenshot: http://screencloud.net/v/Fat6 -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily Dairy: http://harjotmann.wordpress.com/daily-diary/ -- You received this

[ANNOUNCE] Django 1.4.9 and Django 1.5.5 released

2013-10-24 Thread James Bennett
These are minor bugfix releases, so not particularly urgent to upgrade. Details and release notes are available from the blog post: https://www.djangoproject.com/weblog/2013/oct/24/bugfix-releases/ -- You received this message because you are subscribed to the Google Groups "Django users" group