django-1.3 Questions

5

Solved

I am using Django to build a website with MySQL. Now as I am learning so I need to change the Model very often so I want that all tables get cleared and new table get created. But syncdb doesn't t...
Chemotropism asked 26/6, 2011 at 16:15

3

Solved

I'm implementing a REST-style interface and would like to be able to create (via upload) files via a HTTP PUT request. I would like to create either a TemporaryUploadedFile or a InMemoryUploadedFil...
Gasteropod asked 20/4, 2011 at 14:28

5

Solved

I recently installed django-debug-toolbar. The toolbar works and I can see the tabs on the side. However, nothing shows up in the SQL tab even when I have obviously executed an SQL query (such as i...
Candent asked 27/7, 2011 at 4:19

3

Solved

I'm trying to save images which have been passed to me as Base64 encoded text into a Django Imagefield. But it seems to not be saving correctly. The database reports all my images are stored as "...
Cockalorum asked 27/2, 2013 at 15:20

2

Solved

I was wondering if it was possible to use something besides a pk or slug when you are using a DetailView in Django 1.3. For example, I currently have: url(r'^mymodel/(?P<pk>\d+)/$', MyDetai...
Fredericafrederich asked 25/4, 2011 at 17:2

4

Solved

I have a model XYZ and I need to get the max value for fields a, b, and expression x/y for a given queryset. It works beautifully for fields. Something like: >>> XYZ.all().aggregate(Max(...
Siobhansion asked 19/4, 2012 at 3:52

3

Solved

What does MEDIA_URL does now? I am particularly confused after I got "django.core.exceptions.ImproperlyConfigured: The MEDIA_URL and STATIC_URL settings must have different values". I'd appreciat...
Solnit asked 16/12, 2011 at 7:32

2

Solved

I'm struggling to make the 'django.request' logger work as advertised - 500 errors don't seem to propagate to handlers attached to it. In the default logging configuration for every new project, t...
Ozonide asked 10/6, 2011 at 10:32

5

Solved

I am trying to understand Pinax and plan to use it in my next project. I have started with a pinax basic project, and now I have something to go with runserver. Now, I understand that I can custo...
Maricruzmaridel asked 13/5, 2012 at 4:26

3

Solved

I am pretty new to Django (starting with 1.3). In building an app, I went with the new class-based generic views from day one, using a combination of the built in classes and subclassing them where...
Ai asked 8/7, 2011 at 19:26

3

Solved

I'm creating a video sharing website in django. Currently, if a user registers, and upload a video, it will be uploaded to media/vid/uploaded-vid. Then i converted using ffmpeg to flv. What...
Quintile asked 2/4, 2012 at 14:34

2

Solved

I have a little project created with django1.3 and I want to migrate it to django1.4 but since the files structure change a little, what is the best way to migrate?
Entice asked 25/3, 2012 at 2:6

1

Solved

Salam and hi, I am using django and breaking two parts of project in two apps. However there is a reference field of one table as foreign key of other in terms of db. So how can I use one app's mo...
Xylol asked 6/11, 2011 at 2:52

1

Solved

I have just learnt about Django apps. I want to know that within one site, if I make different apps. like, users, profiles, polls, blogs,comments, jobs , applications then how can I manage them to ...
Cowage asked 3/11, 2011 at 20:28

1

Solved

I have this code in my view: def add_intern(request): if request.method == 'POST': form = InternApplicationForm(request.POST) if form.is_valid(): form.save() form = InternApplicationForm() e...
Wideangle asked 18/9, 2011 at 17:31

4

Hey, I am following this tutorial to learn to make a wiki page with Django. However, it is made in django 0.96 and I use Django 1.3 so there are some things that are different. Some I already fixed...
Kruller asked 16/5, 2011 at 17:17

1

Solved

My goal is to create a "log" app, apart from my main app, that will be used for several custom handler classes, filters, etc, and other error and stat reporting. But when running the dev server for...
Nevus asked 5/8, 2011 at 15:35

1

Solved

Im trying to save a form using UpdateView in Django 1.3 and seemed to have run into a problem. When I am saving the form, it POST's to the current URL and the success url is the same url. When sav...
Theine asked 5/5, 2011 at 14:54

2

Solved

Like any other user of django user I serve static files. I've chosen to use django-staticfiles to be ready for django 1.3 which will basically integrate it into the core. My question is pretty sim...
Olin asked 1/2, 2011 at 19:25
1

© 2022 - 2024 — McMap. All rights reserved.