The directions seem quite clear. What have you set TEMPLATE_DIRS to in
settings.py? It goes in there.
--
DR
--
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 fr
On 1 jan, 18:42, Sam Lai wrote:
> On 2 January 2011 00:56, bruno desthuilliers
>
> wrote:
> > "simple_tag" is nothing new - it has been here since the 0.96 days
> > IIRC.
>
> But only the version in v1.3 has the ability to manipulate the context
> object (which is what's needed in the suggested a
"DjangoProjects/mysite/mytemplates/admin/" but I created the
"mytemplates" and "admin" directories for this purpose.
What exactly is this supposed to do for me anyway? I thought it would
allow me to edit the "Django administration" bar at the top, but I
can't as of yet.
On Jan 2, 8:05 pm, Daniel
I am wanting to create an app that helps me organize sheet music. I
want to be able to sort by the artist. Every piece of sheet music I
have I want to be scanned in and uploaded as an image file, then when
I want to open a particular file, it opens as a PDF.
This would be my long terms goals. For
Hello,
I am trying to make a custom (extended) User, according to this:
http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users
So I created my own user called DashboardUser, made a link to django
User using models.OneToOneField and added several additional
at
Hi,
Your TEMPLATE_DIRS should contain a path to a folder where you want to keep
your templates. Say if your project is in *D:/myproject* then create a
folder named
template under *D:\myproject*, and in that folder create a folder named *admin
*and then copy and paste base_site.html into the admin
OK, this is now what I have:
Project location. C:\DjangoProjects\mysite\
base_site.html locationC:\DjangoProjects\mysite\templates
\base_site.html
TEMPLATE_DIRS reads "C:/DjangoProjects/mysite/templates/"
There are no apparent errors, but I also do not see how this helps
me.
base_site.h
TYVM for your response. My first reply does not show, so hopefully I'm
not double posting.
This is what I have so far:
TEMPLATE_DIRS "C:/DjangoProjects/mysite/mytemplates/"
base_site.html location C:\DjangoProjects\mysite\mytemplates
This is what base_site.html reads.
{% extends "adm
Could you please try moving the base_site.html to
C:\DjangoProjects\mysite\mytemplates\admin
folder and Leave the TEMPLATE_DIRS as it is, which is "*
C:/DjangoProjects/mysite/mytemplates*" only. and please try removing the /
slash at the end.
On Sun, Jan 2, 2011 at 5:36 PM, Anthony Pearce wrote:
That has worked. Puzzling to me though since we left off the admin
directory in TEMPLATE_DIRS
None the less, thank you very much. I will continue with the tutorial
and see how much farther I can get.
On Jan 2, 11:46 pm, Praveen Krishna R
wrote:
> Could you please try moving the base_site.html to
*Good to know that It worked. Good luck, anyways
*
On Sun, Jan 2, 2011 at 6:01 PM, Anthony Pearce wrote:
> That has worked. Puzzling to me though since we left off the admin
> directory in TEMPLATE_DIRS
>
> None the less, thank you very much. I will continue with the tutorial
> and see how much f
I was changing models many times and deleting tables inbetween.
New tables were generated to improved models and admin site worked
perfectly.
Now smth happened that i am getting error:
ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent'
that is missing from the form.
'dateSent' is
On Sun, Jan 2, 2011 at 3:36 AM, Martin wrote:
> Hey,
>
> could someone have a look at this, I updated to Django trunk and face
> some problems.
>
> I get the error message ' 'ModelForm' object has no attribute
> '_meta''. But the traceback doesn't have any position of my own code
> inside. Only Dj
Would one of the following work?
1. Hardcore https in the VIEW1 template
2. Write response middleware that, if the request is secure, basically
does s/http/https/g on the response text (this obviously gets all
other URLs as well, which you may not want)
3. Add another MEDIA_URL like variable to se
On Sun, Jan 2, 2011 at 12:49 PM, gintare wrote:
> I was changing models many times and deleting tables inbetween.
> New tables were generated to improved models and admin site worked
> perfectly.
> Now smth happened that i am getting error:
>
> ImproperlyConfigured: 'SentAdmin.fields' refers to fi
Hi Arthur,
Thanks for your post. It was one of the first I found perfectly aligned with
my current issue: showing the look & feel one would expect, while following
the official django tutorial at
http://docs.djangoproject.com/en/dev/intro/tutorial02/ using django's
default *development server*
Hi,
I'm having a issue with Django's dev server. I did a "django-admin.py
startproject" then "manage.py startapp home", then added the app in
settings.py and in urls.py. The app only has a index function in
views.py which is mapped to / and just renders a simple html template.
What happens is that
Ok I have a good start. I have run into a problem though. In my
database, I have an artist field. Most artists have a space in there
name. When creating my URLs, how can I ignore white space?
For example, take the artist Chris Tomlin. In my database, it will
show as "Chris Tomlin", but I don't wan
SlugField ?
On Jan 3, 12:56 am, Kyle wrote:
> Ok I have a good start. I have run into a problem though. In my
> database, I have an artist field. Most artists have a space in there
> name. When creating my URLs, how can I ignore white space?
>
> For example, take the artist Chris Tomlin. In my da
The exception you're seeing is just a response to stopping the request in
the browser. The real problem is that your view function is hanging. Could
you post the source to the view (and the substantial parts of your
template)? Very hard to offer suggestions without the right data.
- Craig -
On
You'll probably want to install the Django debug toolbar (
https://github.com/robhudson/django-debug-toolbar) at some point, though it
doesn't help much with views that hang or throw exceptions.
- Craig -
On Sun, Jan 2, 2011 at 16:25, daniels wrote:
> Hi,
> I'm having a issue with Django's dev
On 3/01/2011 9:56am, Kyle wrote:
Ok I have a good start. I have run into a problem though. In my
database, I have an artist field. Most artists have a space in there
name. When creating my URLs, how can I ignore white space?
For example, take the artist Chris Tomlin. In my database, it will
show
Disclaimer: I'm new to Django and system administration, though a C++
developer.
following the tutorial on:
http://uswaretech.com/blog/2009/02/how-to-build-a-facebook-app-in-django/
I get everything set up. In my settings.py, I have in my
MIDDLEWARE_CLASSES:
'facebook.djangofb.FacebookMiddlew
On 12/20/2010 12:55 AM, Daniel Carvalho wrote:
> Everybody knows the default django FileField doesn't allow to remove an
> existing file...
>
> This is a good replacement. Just use RemovableFileField instead of
> FileField in your models:
> http://djangosnippets.org/snippets/636/
>
>
> I want to
Thank you very much! You have been very helpful. I have, however, run
into another problem.
When I try to access my Object, I get an error "invalid literal for
int() with base 10". I know it has something to do with ForeignKeys,
but cannot find how to fix it.
**models.py**
I have wrestled with this one for a bit and googled and looked through
documentation, so I guess its time to ask.
I am trying make my app redirect to the last viewed page after logging
in. I am running django 1.2.4 and have had no luck so far.
This Stack Overflow thread seemed like it would do th
I was able to find the solution to it myself.
The key was to
1. Create a custom field that extended ModelChoiceField.
2. Overwrite the label_from_instance method in the custom field.
3. Return a HTML string from the label_from_instance method, and
marking that as a safe_string.
from django.forms
Hi there,
I have a drowdown list in my inlines. The problem is that there are
over 3500 items which is making is difficult for people to use. Are
there eaiser ways perhaps to filter or search within the dropdownlist?
Thanks
--
You received this message because you are subscribed to the Google
28 matches
Mail list logo