Hi there, I'm not a Jinja2 user, but standard Django templates get these variables via context processors. Check out https://docs.djangoproject.com/en/1.8/topics/templates/#context-processors HTH Jirka
Hi Manoj,
I'm very happy with django-watson + PostgreSQL combination. It's a relatively
low-tech option, but works very well for me.
HTH
Jirka
-Original Message-
From: Manoj Bawane
Sender: django-users@googlegroups.com
Date: Mon, 6 Jul 2015 08:25:57
To:
Reply-To: django-user
Hi Abraham,
I guess my advantage is that my applications are quite tightly coupled,
so I can set some flags in settings.py.
The key point is that I'm importing class instance from my API code. That
instance represents either the real endpoint or mocked endpoint based on
some flags in settings
Hi Abraham,
I needed to solve this a few months ago, decided to use
https://github.com/getsentry/responses
The way I did this is that I have a function that sets all required
responses (using the endpoint URL and the expected response in a file).
Then I detect in the application setup (apps,
Hello there,
you probably need to take a look at the USE_TZ setting too. If it's True,
then Django will store all times in the UTC timezone and only use the one
you configured in views and templates (and a few other places).
In most cases, that's what you want anyway as it's the most reliable
It's very likely that the actual user running the webserver process(es) does
not have "ping" on the executables path...
HTH
Jirka
-Original Message-
From: dk
Sender: django-users@googlegroups.com
Date: Tue, 31 Mar 2015 08:12:03
To:
Reply-To: django-users@googlegroups.com
Subject
Look at the "date" filter in template documentation, allows you to customize
the output.
HTH
Jirka
-Original Message-
From: Oskar Lyrstrand
Sender: django-users@googlegroups.com
Date: Thu, 23 Oct 2014 03:28:10
To:
Reply-To: django-users@googlegroups.com
Subject: DateTimeField:
Hi there,
you could do it manually by counting occurrences or you could take a look
at aggregation functions here:
https://docs.djangoproject.com/en/1.7/topics/db/aggregation/
Do as it suits your use case.
HTH
Jirka
On 13 October 2014 06:30, dk wrote:
> I am storing the information
Hi Mohammad,
this can be easily achieved using a custom management command - check the
Django documentation.
HTH
Jirka
-Original Message-
From: alghafli
Sender: django-users@googlegroups.com
Date: Wed, 30 Jul 2014 07:02:59
To:
Reply-To: django-users@googlegroups.com
Subject
Also, not directly tied to ModelAdmin, but you might want to take a look at
django-watson.
HTH
Jirka
-Original Message-
From: Johannes Schneider
Sender: django-users@googlegroups.com
Date: Tue, 08 Jul 2014 09:26:07
To:
Reply-To: django-users@googlegroups.com
Subject: Re: Full tex
It's very likely a permissions problem. Webserver processes tend to run under a
special username (e.g. www-data) with very limited permissions - it's likely
that this user does not have access to the socket file.
HTH
Jirka
-Original Message-
From: Henning Sprang
Sender: django-us
Hi Lewis,
looks like you already got the answer - using Q() objects helps a lot.
I'll just add two things that might help:
- it's possible to prepare filters in advance which helps readability and
code structure. I often do something similar to this:
from django.db.models import Q
filters =
You're probably looking for something along the lines of:
thread = Thread.objects.get(id=)
msg = Message.objects.get(id=)
thread.user.add(msg.sender)
Look at add() and remove() methods in documentation (search for related
managers).
FYI - it's a good practice to name fields that use ManyToMany
Hi Thomas,
I'm doing exactly this - allowing users to download (graphically simple)
XLSx files from my web app, it also needs to be available for download
weeks later.
As Russell pointed out, you don't need to store data on this if you have
a way of getting the same set of data later, you can
(not on a PC now)
You're looking for quite common functionality - search you favourite search
engine for combination of Django, Ajax and "typeahead"
HTH
Jirka
-Original Message-
From: roopasingh...@gmail.com
Sender: django-users@googlegroups.com
Date: Mon, 5 Aug 2013 00:50:06
T
> I know them, but I need to programmatically get it in a way that works
everywhere.
Sorry, you can't. You might be able to do in in some circumstances, but not
reliably "everywhere". There is too many unknowns involved if you are out
of the request-response cycle (e.g. named virtual hosts, CNAME
If you need it when you already have a request object, (i.e. not during
initial setup/install), check out request.META options in the documentation.
HTH
Jirka
On Tue, Jul 2, 2013 at 8:43 AM, Larry Martell wrote:
> On Mon, Jul 1, 2013 at 7:55 PM, Sithembewena Lloyd Dube
> wrote:
> > It s
Hi Nigel,
You have a spelling error in the word "unicode" in the TextFile method.
Cheers
Jirka
-Original Message-
From: Nigel Legg
Sender: django-users@googlegroups.com
Date: Wed, 19 Jun 2013 06:51:21
To:
Reply-To: django-users@googlegroups.com
Subject: Model Error
I have be
I'd look at how you reference your settings during imports. The error message
spells "Settings" with uppercase "S" which feels incorrect.
HTH
Jirka
-Original Message-
From: Navid Shaikh
Sender: django-users@googlegroups.com
Date: Sun, 17 Mar 2013 02:20:29
To:
Reply-To: django-
You have
ShowAppsView.as_view()(self.request)
at the end of the code you pasted below. That means that you get result of
the ShowAppsView which gets immediatelly discarded ("forgotten") because
you don't do anything with it.
You probably want
return ShowAppsView.as_view()(self.request)
but tha
Probably the easiest way is to use a JS/CSS framework that has a good support
for popups and forms. There are a lot out there. I have personal experience
with Bootstrap (one of the most popular these days) - check its documentation
(look for both "popup" and "modal"), also search for available b
Pro tip: if you find yourself in a similar situation again, try searching
Django code for "def F(" and "class F(" - that should narrow your search a
bit :)
Cheers
Jirka
On Fri, Feb 1, 2013 at 6:14 AM, Chad Vernon wrote:
> Nevermind, found it! Was having a hard time searching for "F" :
Hi galgal,
You might want to take a look at django.contrib.comments (either use it or
learn from it) and/or GenericForeignKey.
HTH
Jirka
-Original Message-
From: galgal
Sender: django-users@googlegroups.com
Date: Wed, 23 Jan 2013 14:48:55
To:
Reply-To: django-users@googlegr
Yes
-Original Message-
From: Randa Hisham
Sender: django-users@googlegroups.com
Date: Wed, 19 Dec 2012 13:11:35
To:
Reply-To: django-users@googlegroups.com
Subject: ajax
hey,
if i wana use ajax in my django project
could i use jquery or dajax liberary
--
Randa Hesham
Software Develope
You have not posted any code so it's difficult to say what you might be
missing. I can only confirm that the messaging framework works very well
outside of admin, requiring only a few lines of code in views (typically) and a
base template.
Cheers
JirkA
-Original Message-
From: An
> I'm just facing a problem with little longer runnig SQL select command,
and DJago framework returns a "504 Gateway Timeout" after aprox 10 seconds.
My sql command is executed on Oracle SQL database through
"django.db.backends.oracle" driver.
You'd have to change multiple timeouts to make this wo
I may se the formating incorrectly (on a phone) but it looks like your save()
method does nothing if self.pk already exists (i.e. model is not new)
HTH
Jirka
-Original Message-
From: Lachlan Musicman
Sender: django-users@googlegroups.com
Date: Tue, 27 Nov 2012 11:07:42
To:
Repl
Hi there,
a long shot since you have not provided your save() method. Are you calling
super() there?
Cheers
Jirka
-Original Message-
From: Lachlan Musicman
Sender: django-users@googlegroups.com
Date: Tue, 27 Nov 2012 10:14:03
To:
Reply-To: django-users@googlegroups.com
Sub
Hi Isaam!
Do you have a specific reason for using mod_python?
This module is old and deprecated. The recommended way is to use other
modules, many people use mod_wsgi which is really simple to deploy and use.
HTH
Jirka
-Original Message-
From: Issam Outassourt
Sender: django
>The reason is that I should add in the table "django_site" of
my database : domain and name, I did it : insert into django_site (domain,
name) values ("ncegcolnx270", "mysite"); And it works. But this point,
the Tutorial 1 doesn't say.. How can I perhaps help update the Tutoria
I may be wrong, but I don't see you using {% csrf_token %} anywhere. You're
posting random snippets from your code that only loosely relate - I have
trouble finding full code for the view and all components of HTML templates
causing you trouble.
So I'll just post a few tips:
- before submitting
paris_discounts = Discount.objects.filter(brand__city__name='Paris') ?
Note that these are always *double* underscores and I had to make a guess
that your City has an attribute "name".
HTH
Jirka
On Fri, Nov 9, 2012 at 9:12 AM, ozgur yilmaz wrote:
> Hi all,
>
> I hope i can explain
Hi there,
I'm sorry I don't have a solution for you. However I have a
warning/recommendation.
Even if you don't serve the full site over https, you should make sure that
forms that submit data over HTTPS are served over HTTPS. Otherwise you make it
difficult for users to verify that their
On the UI side, you can set the "readonly" property on form fields.
This will prevent the field from being edited in a browser (I think so
- done that only once on a small internal project).
However, we warned - if *some* of your users can edit and submit the
form, you should also introduce server
Hi Markus,
I don't think you mentioned what OS you use on your machine with Django.
If it helps, I had this in my settings.py when connecting to MS SQL
database from Linux
'mssql': {
'ENGINE': 'sql_server.pyodbc',
'NAME': 'mdb',
'USER': USERNAME,
'PASSWORD
Hi Gregg,
I've done something similar in the past - had several external databases (MS
SQL and Oracle) attached to my Django project. These were backends of
enterprise tools, hundreds of tables each.
I used the "manage.py inspectdb" command to reverse engineer each "external"
DB, manually
Others have pointed at the indentation error, so I'll just add that
mod_python is no longer supported and recommended - you should use
mod_wsgi or similar supported module if possible at all.
HTH
Jirka
--
You received this message because you are subscribed to the Google Groups
"Django u
Hi Vincent,
Django is telling you what the problem is - none of strings in urls.py
matches the requested URL. All lines in your file say that the regular
expression fas nothing before the "foo" (the "^" character says that). However
the URL you are trying has "homepage/" before "foo". Hence i
> how to use java script alert from view after sucessfull opreation in view
Simplest way is to set some context variable (a.k.a. "flag") in the
view (e.g. "operation_successful = True") and have a piece of JS code
in your template that runs only when this flag is set, e.g:
{% if operation_succe
Hi Phil,
incidentally, I was looking at this just recently. The
contrib.markup was deprecated mainly due to security issues with 3rd
party libraries that could not be fixed in Django itself and were
compromising its security. For more, read
https://code.djangoproject.com/ticket/18054
Can't te
If you have sessions enabled, you can use the built-in messages
framework (look in contrib) to display a message on the "next" page.
Alternatively, you can save (semi-) arbitrary data in the user session
and retrieve it in the view that displays the "success" page.
HTH
Jirka
--
You receiv
Hi nav,
A long shot - do you happen to have a proxy defined in your browser? It is
possible to define a proxy for *all* request (including localhost) - this would
have the same effect.
HTH
Jirka
-Original Message-
From: nav
Sender: django-users@googlegroups.com
Date: Mon, 27 A
It's easy to install Django on a Windows machine to test it out and
develop code. Most of this is covered here:
https://docs.djangoproject.com/en/1.4/topics/install/
In a nutshell, you need:
- Python 2.x (2.7) - install it if you already have not done so
- Django (start with a stable release e.g.
> right, I was being very brief in my description!
> But it is the following:
> I want to insert data into the database from the shell, django shell, but
> the result is always that you can not import the settings because the va
> riavel DJANGO_SETTINGS_MODULE is not set
Did you read my previous e
It's always good to copy the error message you're getting. It seems that you
try to run "python manage.py shell" ang getting an error that
DJANGO_SETTINGS_MODULE is not set.
Please follow at least a bit of the tutorial on docs.djangoproject.com which
will teach you how to set this variable prop
Hi there,
you definitely don't want to allow apache to setuid() to root as
you've pointed out. You have a few options, probably the easiest one
is to write a pair of scripts for each task you want your application
to perform with root privileges.
- the first script will only contain "sudo "
Hi there,
> As templates cannot do lookups into a dictionary
Templates can do lookups into a dictionary, see
https://docs.djangoproject.com/en/1.4/topics/templates/#variables
(check the "Behind the scenes" section).
From what you've described, I'd try to prepare the necessary data in
a v
Sorry, I should have read your code before answering.
I'm struggling to understand what you do in your clean() method. Are
you sure you're returning the right set of data?
Jirka
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
> Thank you for the suggestion, but unfortunately that too does not work.
>
> I really need to find a way to get at the source of the problem; I would
> think an error message should be generated but none shows up...
Are you doing some magic in model's save() by any chance?
Jirka
--
You recei
Hi Marilena,
I'm also using Twitter Bootstrap and over time migrated to this
template snipped that I'm including in my templates at the place where
you put {{ form.as_table }}
http://dpaste.com/hold/768995/
If you find it useful, great :) I'm not a web developer by nature
so there may be a
> Hello,
> http://cdm-fr.fr/2006/schemas/CDM-fr.xsd"; language="fr-FR">
> {% if formations %}
>
>
Hi there,
you probably want to follow your {% if formations %} statement with:
{% for formation in formations %}
Check Django template documentation again - you're moving along th
>> @Jirka - thanks. I saw something about the messaging framework and even
>> tried one example which did not work.
Using the messaging framework is actually very simple.
You need to enable the messaging framework (see the steps here:
https://docs.djangoproject.com/en/1.4/ref/contrib/messages/ )
Hi,
have you checked the messaging framework in Django?
HTH
Jirka
--
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
djang
> experience. However when I'm trying to execute following command in
> command prompt (Windows 7), I get this error.
> File "", line 1
> django-admin.py startproject mysite
> ^
> SyntaxError: Invalid synatx
Hi there,
this is a typical Python interprete
Hi,
Are you trying to create passwords on behalf of users? This is usually a bad
idea.
If I got your message wrong and you talk about secure password hashes, is
there something specific you did not like about the current Django auth system?
Or maybe you are interested in password complex
Hi,
you're creating your database file in /usr/bin which is intended for
system executable files, not databases etc. It's highly likely that
you don't even have write permissions there (unless you work using the
"root" account which is a big NO-NO).
Set your database file somewhere where you
Hi,
search documentation for "database routers" and using() in the ORM...
HTH
Jirka
-Original Message-
From: Min Hong Tan
Sender: django-users@googlegroups.com
Date: Fri, 25 May 2012 22:18:23
To:
Reply-To: django-users@googlegroups.com
Subject: django connect alternate databa
> 1. ^wikicamp/(?P[^/]+)/edit/$
> 2. ^wikicamp/(?P[^/]+)/save/$
> 3. ^wikicamp/(?P[^/]+)/$
>
> The current URL, wikicamp/, didn't match any of these.
All defined URL's expect wikicamp/some_page_name/ (and maybe some
extras after). The requested URL has no page name, terminates right
after "wikica
> i am trying to use dajax in my page and i followed all steps several times
> as given hier: http://dajaxproject.com/
>
> but once i click on onclick="Dajaxice.home.randomize(Dajax.process), nothing
> is happening and i saw in console of firefox, there it says, "Dajaxice is
> not defined". but i i
Hi Marc,
if I remember correctly (can't check now), the documentation clearly states
that you should avoid using null=True on CharField unless you have a good
reason. Your example is a textbook reason why is it recommended - having two
distinct states for "empty string" (i.e. "blank" and "nu
> I was able to get the django-admin.py file to be located and I no
> longer had an error with startproject not executing but there was a
> random issue with the name of my file. At this point I have no idea
> what the problem is.
>
> http://madtrak.com/error.png
Hi there,
you are missing the d
Hi Adam,
I tend to use:
if examples.count():
...something...
HTH
Jirka
--
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 em
> queryset=MyModel.objects.all()
> obj=MyModel.objects.get(id=319526)
Thomas,
if the second line works for you (i.e. does not raise
MyModel.DoesNotExist exception), then obj is in queryset by
definition.
What are you trying to achieve?
Jirka
--
You received this message because you are
I thought I missed something :)
First of all, nothing stops you from writing raw SQL query if you had
one in mind. It might be more sensible than trying to massage the ORM
too much.
If you insist on ORM, but something along these lines *might* work (I
really don't have the opportunity to test it
Hi there,
I may be missing something obvious here, but have you tried thinking
about it the other way round? The below is just an untested hint:
class Team(models.Model):
def get_status(self):
team_status =
AssignmentUpdate.objects.filter(assignment__team=self).latest().status
return
OK - I can't see anything wrong with your code that'd jump at me. Can
you check your database table format? Maybe you've declared your model
fields as models.DateField first and then changed to DateTimeField
without changing the underlying table? Just a guess :)
Jirka
--
You received this mess
Can you tell us what is the "[0:6]" supposed to be doing in your time
conversion funcions?
--
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 e
Yves,
this:
^polls/ ^polls/$
^polls/ ^polls/(?P\d+)/$
^polls/ ^polls/(?P\d+)/results/$
^polls/ ^polls/(?P\d+)/vote/$
suggests that you did not follow the tutorial closely. Django keeps
telling you what's wrong - your urls.py in your application (pools)
duplicates the word "polls" in (most of
Raj,
PasswordInput deals with browser forms to make sure that a password
can't be seen in the form by someone looking over user's shoulder. But
it does nothing to encrypt passwords in database.
Why don't you check out django.contrib.auth.models for inspiration
about encrypting passwords if pl
Hi there,
your database is not set up properly - are you sure you went through
the "database setup" section of the tutorial?
HTH
Jirka
--
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
Prem,
your Django does *not* have to be on your PATH, but it either has to
be in your PYTHONPATH or there must be a link from your Python
site-packages directory.
The easiest way is to add c:/Django-1.0.4 (notice the forward
slash) to your Windows PYTHONPATH environment variable (or create i
> I.e. I want to set up database connection after Django app has started
> *when I want it*.
> Is there a way to do it?
No. At least not easily. Django is a web framework and is expected to
run on a web/application server with a single-user connection to a
target database. That's typical for web a
>> > ... I'm hoping some standard solution
>> > already exists.) Sorry to be so long winded.
Hi there,
in older Django versions, you can use direct_to_template from
generic views to automatically use RequestContext. I'm using it to
save a line or two per view. Not a magic solution, but might
> how can i get the queries being passed while a page is being
> requested? i mean when a view is requested the database queries being
> sent.
Hi,
it's difficult to figure out what you need from your question, but
I'll make a wild guess that you need this:
https://docs.djangoproject.com/en/dev
> Thank you all for your help!!!
I know I'm a bit late to the party (blame timezones :), but thought
I'd put my 2 cents worth in :)
For inspecting models from command lines (usually when working with
models from legacy databases) I often use model_to_dict which is
"hidden" in django.forms.models.
> class Poll(models.Model):
> question = models.CharField(max_length=200)
> pub_date = models.DateTimeField('date published')
> def __unicode__(self):
> return self.question
>
> class Choice(models.Model):
> poll = models.ForeignKey(Poll)
> choice = models.CharField(max_length=20
Hi there,
Django is just a Python package. Forget for a moment that you use
Django for database connection and solve your "how do I recognize a
MAC address?" problem just as you'd solve it in pure Python.
There is nothing wrong with the MAC addresses in your example - why do
you say these are in
I have not done it myself, but you might need to specify custom widget
for your field. Take a look at PasswordInput widget here:
http://docs.djangoproject.com/en/1.3/ref/forms/widgets/
HTH
Jirka
--
You received this message because you are subscribed to the Google Groups
"Django users" gr
Or any other database that you would be familiar with or could easily
get help for. SQLite3 is great for single-process tasks and simple
development. It can't however handle simultaneous writes (other
databases supported by Django can handle simultaneous writes)
As you use multiple threads/proce
Thanks for DSE!
I tried it earlier (version 0.6 I think). While I really liked the
speed improvement, there were 2 areas that did not suit me too well:
- error detection - I needed reliability more than speed and I was
not comfortable with situations like "the IntegrityErrror is somewhere
in
Have you checked permissions?
--
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
Hi did you notice in tutorial (or docs) that view names in urls.py are
usually strings, not functions? So, if you use 'farewell' in urls.py,
you should be fine.
HTH
Jirka
On 22/04/2011, Marg Wilkinson wrote:
> Hi,
>
> I'm a total newbie slogging my way through a tutorial. I've reached an
Are you getting this error only when using the app through a web server?
Have you verified that the web server does have ORACLE_HOME and
LD_LIBRARY_PATH correctly defined? (e.g. by logging it using os.environ).
Are you sure that the user that is used to run your webserver has
permissions to read a
Hi Kamal,
checking my install history, this is what I had to do to use
cx_Oracle on Ubuntu Server:
$ /usr/local/oracle/instantclient_11_2$ ln -s libclntsh.so.11.1 libclntsh.so
$ WITH_UNICODE=1 ORACLE_HOME=/usr/local/oracle/instantclient_11_2
python setup.py build
$ sudo bash
# WITH_UNICODE=1 OR
> I'm getting 20-30 seconds delay when trying to bind request.POST data
> to form.
Hi Toni,
it's a very long shot, but similar delays are often related to DNS
issues. Is there anything in your code or data that might be using
domain name? It *might* be possible that some part of your code (or
I use Djano ORM for a lot of my backend processing where no web is
involved. Just make sure that DJANGO_SETTINGS_MODULE is defined in
your environment and you can use pretty much any part of Django in
your own code/scrits/whatever.
HTH
Jirka
On 15/04/2011, Aviv Giladi wrote:
> Hey guys,
Mike,
I use exactly the same setup. Look up the "django-odbc" package.
This will be quite easy to use and setup, but there are some
unresolved bugs in that package related to multi-db support. Most of
them have patches attached to their tickets.
Cheers
Jirka
On 15/04/2011, Mike Kenny
> IndentationError: unexpected indent
>
> I don't know what's wrong - Can You help me?
It's exactly what it says - indentation is important in Python and
number for spaces (or tabs) on that line does not match the rest of
your file. Or you mixed tabs and spaces.
HTH
Jirka
--
You received
OK - I'm going to ask the obvious question here - have you made sure
that Apache web server user can read ALL your configuration files? The
log reveals that there are permission problems on .htaccess file that
is stored in your home directory (where Apache can't reach by
default). I'm going to make
Will this answer your question?
>>> import datetime
>>> datetime.datetime(year=, month=00, day=00)
Traceback (most recent call last):
File "", line 1, in
ValueError: year is out of range
Jirka
--
You received this message because you are subscribed to the Google Groups
"Django users"
Most likely, you have a proxy defined in your browser and "bypass
proxy for local machines" is not checked.
Cheers
Jirka
On 09/03/2011, pjstunna wrote:
> Hi,
>
> I just recently discovered Django and I'm following the Django
> tutorial as it is written on the website (
> http://docs.dja
Well, we're missing the bit where you tell us what error are you
getting. I don't know about others, but my crystal ball is a bit dusty
these days.
The models.py snippet you posted is obvious result of inspectdb
output, which *may* need some manual tweaking. But it's difficult for
us to guess as w
Hi Carsten,
this does not seem to me like something you would be able to do
using SQL (or Django ORM) only. I would guess that you'll have to
write a bit of Python code that will walk through the entries and
detect those that are different from "previous"
Cheers
Jirka
--
You received t
> AlreadyRegistered at /blog/
> The model BlogPost is already registered
That you have duplicate registration of one model in your admin.py
somewhere (I believe, I may be wrong).
Cheers
Jirka
--
You received this message because you are subscribed to the Google Groups
"Django users" g
I don't have much experience with this, but it looks like a good use
case for signals and atomic counters using memcached.
Just my 2 cents
Jirka
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-
> I am building an app that passes a domain name to urls.py like so "/
> sites/domain.com/'
>
> but I cannot get my urls.py to match the 'domain.com' it only seems
> to match if i just use domain without the dot
>
> I have tried
>
> (r'^zones/^[^/]+/', get_domain),
> (r'^zones/(?P\w+)/', g
> i've tried inspect-db but i still have no vitctory
Err, what exactly does that mean? Did you get an error message?
> it's get error while i recompile back it to oracle by syncdb
Again - difficult to help you if you don't say *what* error.
> errr...and something i don't know, if i syncdb,
Search documentation for "inspectdb"
HTH
Jirka
On 30/01/2011, arief nur andono wrote:
> is there anybody could save my time to make django work with existing
> database so i need only create the sql in model (not have to define
> table and field in models.py)
>
> --
> You received this m
> {{record.ComplaintTime|time:"Y-m-d
> H:i"}}
>From the documentation:
"The time filter will only accept parameters in the format string that
relate to the time of day, not the date (for obvious reasons). If you
need to format a date, use the date filter."
So, you need to use:
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
1 - 100 of 182 matches
Mail list logo