> Hi! Is it possible to use i18n for folder names in url patterns? For
> example "/accounts" in english would translate automatically to
> "konten" in German.
Hi, Here's my solution to what I think is the same requirement:
First of all setup urlpatterns in urls.py to map all the language
variati
Download Weather Toolbar - Instant weather reports, forecasts, and
radar images anytime for FREE! - http://surl.in/HLWTD238206SVRAKSX
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Download Weather Toolbar - Instant weather reports, forecasts, and
radar images anytime for FREE! - http://surl.in/HLWTD238206SVRAKSX
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
I am following the geodjango tutorial on djangoproject. I have
installed postgresql with postgis. and tested orginfo with GDAL
sucessfully. However, I am getting an error while running syncdb.
django.core.exceptions.ImproperlyConfigured: Could not import user-
defined GEOMETRY_BACKEND "geos".
I a
Hi Bryan,
I believe the problem is that selenium and the django testing framework
are looking up different databases. To run selenium, you would be
starting the actual server
One solution is to use 'manage.py testserver ' for running
the selenium tests. This will ensure that the data is popu
If you change '/django' to '/' in your WSGIScriptAlias directive, then
everything will be forwarded to django, but apache will no longer check
in DocumentRoot since all url paths begin with a '/' and will be matched
by your wsgi alias
This means you would need another way of handling static co
For a cgi script or a wsgi script, all you need to do is add a script
alias in your apache conf (if you're using apache). The parameters
should be available as a a dictionary in both the cases
(cgi.FieldStorage() and envrion).
Although it would help to know why you want to do this. If you alre
Hi Jak,
I would suggest removing the "," after MEDIA_ROOT in your settings file
if it indeed is there. Could you also be a little more specific about
the problem. Is the rest of the page loading fine? and if it is, do you
see /media/ being pre-pended to your file name when you see the source
o
static content is that wsgi applications are blocking
applications and the server blocks activity until the wsgi request is
handled. This could affect your performance for concurrent requests if
you have a single process
On 7/9/2012 3:25 AM, Matt Smith wrote:
Thx Kenneth, Rohan, Melvyn.
I
I have two tables in my database with one common field. Is it possible
to write a web app to create views using django?
Any help would be greatly appreciated.
Thank you
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, sen
Can you please be a bit more specific? The link you provided is for
Django tutorials. It would be great if you could guide me to the
specific page.
On Jun 14, 10:16 am, Shawn Milochik wrote:
> On 06/14/2011 10:42 AM, rohan wrote:
>
> > I have two tables in my database with one comm
Hello,
I am new to Django and am trying to design a chemistry database in
Django and am stuck with creating the relations between the tables.
Below are my models. When I try to validate I get an error stating
that the reverse query name for field 'species2ID' clashes with m2m
fileID 'Compunds.rea
Hi,
I am creating an app and want to store the database and the images
within the project. The main motive behind this is I want to create a
database with django's admin interface and want to use it on other
computers later. In order to do this I will need to use relative
paths. I tried using os.p
I got it working.
I just used os.path.join(PROJECT_ROOT,'db/chemdb') in place of
database name. It created the database within a folder called db
inside the project.
On Mar 29, 1:50 pm, Shawn Milochik wrote:
> This works for me:
>
> DIRNAME = os.path.dirname(__file__)
--
You received this mes
Hi,
I am creating a chemistry database using django's admin interface in
Sqlite3.
The database has a simulations table which has a many to many
relationship with the compounds table.
Each simulation needs to start off with a fixed number of compounds
that it has and each simulation can have 1 or
Hey Ryan,
That seems very helpful. I will try using this argument.
Thanks a lot.
Rohan
On Mar 30, 5:10 pm, Ryan Osborn wrote:
> Have you considered using the 'through' argument for the many to many
> field? This lets you specify your own intermediate table to which you can
The method works perfectly. Thanks once again.
On Mar 30, 5:36 pm, rohan wrote:
> Hey Ryan,
>
> That seems very helpful. I will try using this argument.
> Thanks a lot.
>
> Rohan
> On Mar 30, 5:10 pm, Ryan Osborn wrote:
>
>
>
>
>
>
>
> > Have you
Hi!
I have a problem with django and ajax.
I am giving requests from ajax which run a process that takes some
time and has many stages. Is there any way to return the various
stages as responses, so the user does not have to see only the loading
image but can also the current status of the process
I have a field 'submission' which has a 'user' and a 'problem'.
How can i get a django queryset search result which will give a list
of only one result per user-problem pair.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
submission by u1,u2 on
p1.
On Aug 14, 5:57 pm, Kenneth Gonsalves wrote:
> On Sat, 2010-08-14 at 05:45 -0700, Rohan Jain wrote:
> > I have a field 'submission' which has a 'user' and a 'problem'.
> > How can i get a django queryset search result which wil
On Aug 14, 5:57 pm, Kenneth Gonsalves wrote:
> On Sat, 2010-08-14 at 05:45 -0700, Rohan Jain wrote:
> > I have a field 'submission' which has a 'user' and a 'problem'.
> > How can i get a django queryset search result which will give a list
> >
My models are defined like this:
class Problem(models.Model):
title = models.CharField('Title', max_length = 100)
question = models.TextField('Question')
class Submission(models.Model):
user = models.ForeignKey(User)
problem = models.ForeignKey(Problem)
solution = models.CharK
i think what you need is http://code.google.com/p/django-cron/
Also you may want to check out http://celeryq.org/ if you want to do
parallel processing,
distribute jobs to other computers to ease the web server load.
On Aug 18, 5:10 am, Andy wrote:
> I have a Django application.
>
> One of my mo
Django assigns an id field to models automatically, so you dont need
to define it seperately. And even if you define it you have to assign
auto_increment = true so that it is automatically filled.
On Aug 24, 2:55 pm, Dan wrote:
> Hi,
>
> I have some troubles with my Django model: whenever I creat
Any good documentation available on how to implement AJAX with Django ?
--
Thanks and Regards,
Rohan Shah
++[>>++>+++>+<<<<-]
>++. >+++.---. ---.. >++. <<+. >--.
---.+++.
--
You receiv
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'
ndle signing.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this
Hi Folks,
Have published to documentation on this module to readthedocs;
https://django-yamlconf.readthedocs.io/en/latest/
Take care,
Michael.
On Mon, Aug 13, 2018 at 5:39 PM Michael Rohan
wrote:
> Hi Folks,
>
>
>
> The package Django-yamlconf 1.0.0 has been uploaded to pyp
nf.readthedocs.io/en/latest/
for more detailed info. The primary driver was the update to PyYAML load
function to require a Loader kwarg.
Take care,
Michael.
--
Michael Rohan
mro...@acm.org
--
You received this message because you are subscribed to the Google Groups
"Django users" g
Is django 2 going to have inbuilt package for creating API's to cater to
ajax requests and JSON responses for which we use DRF. Another thing which
was on my mind was If Django 2 will come out with support for Token Auth as
a default package along with the current session based login.
--
You r
I have implemented class based password reset view as instructed in
django1.11 but the template being used is the default template, I want to
use a custom template. Where I am stuck is If I have to use a custom
template then I will have to call get and post functions to return the
template to b
nf.readthedocs.io/en/latest/
for more detailed info.
The updates for the this release are:
- Tagged with ``v1.2.1``.
- Fixed the long description which caused failures for "pip install" of
v1.2.0.
Take care,
Michael.
--
Michael Rohan
mro...@acm.org
--
You received this message bec
Hi,
I believe it's probably easiest to simply create the Sphinx html files in
one of the static directories (probably should add to the top level one if
you have one, or one of the apps if the docs are app specific) and just let
the static file handling serve them. You could use whitenoise to
Hi, Though its a too old question, but just thought of answering because i
also got the same issue
One thing you can do is first migrate(syncdb) to bdatabase and then load
the data.
On Monday, 10 November 2008 16:29:37 UTC+5:30, XQ Kuang wrote:
>
> Hi, all.
>
> How can I create a new table wit
Hi Folks,
The package Django-yamlconf 1.0.0 has been uploaded to pypi. There are a
number of YAML (and other formats) support modules for managing Django
settings. The main difference here is:
1. The directory tree is used to store multiple YAML config files with
definitions highe
How can we make this happen?
What steps would be needed so that bulk_create ends up returning the ids of
the items that just got created? I don't want to be machine gunning my db
with save statements to retrieve ids.
--
You received this message because you are subscribed to the Google Groups
; group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ad2ead73-7a13-b5ac-ee10-cf60edc92323%40dewhirst.com.au
> .
>
lues via the
environment, list, dictionaries, etc. This can be used in K8s
environments, e.g., Concourse (for me).
- Added a `CODE-OF-CONDUCT` file for contributors.
Take care,
Michael
--
Michael Rohan
mro...@acm.org
--
You received this message because you are subscribed to the Google Gr
the only developer and the GitHub repo is set to
>> Private)?
>>
>> Many thanks in advance for your help.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop
Check this out:-
https://realpython.com/modern-web-automation-with-python-and-selenium/
On Sat, 22 Feb 2020, 19:39 Suraj Kumar,
wrote:
> Do you know Automation through Python.
> I want to learn automation tools.
>
> Tools like appium, selenium
>
> --
> You received this message because you are
primarily for use in uWSGI
ini files) giving the number of available CPUs.
Take care,
Michael.
--
Michael Rohan
mro...@acm.org
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving email
41 matches
Mail list logo