sah writes:
> Though i remove those two line it did not change anything. It works
> the same as before, i get the search_form page and if i give some
> value for search, I get a 404 error page saying that the page is not
> available in the server.
>
Then check the /var/log/apache2/error.log file
Avraham Serour writes:
> you don't need songid = models.Integerfield()
... and the ForeignKey should not specify a db_column.
>
> On Tue, Jul 23, 2013 at 6:04 AM, Brian Millham wrote:
>
> I have the following models:
>
> class Requestlist(models.Model):
> id = models.Int
Nigel Legg writes:
> template datatables.html:
>
>
>
> Make Tables
>
>
> enctype="multipart/formdata">{% csrf_token %}
>
>
smy28 writes:
> Okay, so I ran python manage.py shell and I got the following error:
> TypeError: Error when calling the metaclass bases
> __init__() keywords must be strings
>
I'd suggest that you remove everything and start from scratch. Make
sure that all the requirements are met and that
MattDale writes:
> You are correct in assuming that your first view using
> render_to_response shouldn't work without sending a RequestContext in.
> A much cleaner way is just to use the render function.
> https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#render
> which takes a lot of
I have a simple application and it DTRT before turning on CSRF
(this is on Django 1.5.1). So I tried to follow the documentation
to turn on CSRF detection and was getting intro trouble.
First I tried to follow this page:
https://docs.djangoproject.com/en/1.5/ref/contrib/csrf/
I did steps 1 an
jesmine chaudhuri wrote:
> Hello,
>
> I am new in Python and Django. This is my first test project following the
> site :
>
> https://docs.djangoproject.com/en/1.3/intro/tutorial01/
>
> I am using database MySQL.
>
> I configured in
>
> INSTALLED_APPS = (
> 'django.contrib.auth',
> '
frocco wrote:
> Hello,
>
> I am getting
> django.core.exceptions.ImproperlyConfigured: Requested setting CACHES, but
> settings are not
> configured. You must either define the environment variable
> DJANGO_SETTINGS_MODULE or call
> settings.configure() before accessing settings.
>
> trying p
rktur...@gmail.com wrote:
> I'll keep this as short as possible. When I input python manage.py sql
> polls, i get the following
> error:
>
> C:\Python27\Lib\site-packages\django\bin\mysite>python manage.py sql pol
> Traceback (most recent call last):
> File "manage.py", line 10, in
> ex
Jim Wombles wrote:
> I'm working through the Django Tutorial: Photo Organizer and Sharing App and
> I am getting an invalid syntax error in line 25 of admin.py:
>
> 1st = [x[1] for x in self.tags.values_list()]
>
Forget django: just go into the python interpreter and say
1st = 3
Same error,
Laxmikant Gurnalkar wrote:
> Thats the same I'm saying to you.
> In your settings.conf. There is no section named 'database'
Look again: there *is* a [database] section at the very bottom:
[database]
engine : django.db.backends.mysql
name : kasakoo
user : root
p
11 matches
Mail list logo