Re: multilanguage folder names in urls?

2007-04-11 Thread Rohan
> 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

2007-01-20 Thread rohan$
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

2007-01-22 Thread rohan$
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

geodjango error

2012-03-17 Thread rohan
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

Re: How can Selenium see a record that I can't find from a debugger?

2012-07-02 Thread Rohan
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

Re: Deployment: Apache2, wsgi (Debian squeeze)

2012-07-03 Thread Rohan
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

Re: submit parameters to py script

2012-07-06 Thread Rohan
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

Re: Getting images to appear in html using Django.

2012-07-09 Thread Rohan
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

Re: Deployment: Apache2, wsgi (Debian squeeze)

2012-07-09 Thread Rohan
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&#x

How to create a single data view from multiple data sources

2011-06-14 Thread rohan
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

Re: How to create a single data view from multiple data sources

2011-06-14 Thread rohan
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

problem with creating foreign keys

2011-03-29 Thread rohan
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

How to store the database in the project root

2011-03-29 Thread rohan
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

Re: How to store the database in the project root

2011-03-29 Thread rohan
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

How to store multiple instances of a single object in the database

2011-03-30 Thread rohan
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

Re: How to store multiple instances of a single object in the database

2011-03-30 Thread rohan
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

Re: How to store multiple instances of a single object in the database

2011-03-30 Thread rohan
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

Django with AJAX, execution of long processes

2010-08-07 Thread Rohan Jain
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

django queryset get only one result for one column pair

2010-08-14 Thread Rohan Jain
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,

Re: django queryset get only one result for one column pair

2010-08-14 Thread Rohan Jain
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

Re: django queryset get only one result for one column pair

2010-08-14 Thread Rohan Jain
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 > >

Re: django queryset get only one result for one column pair

2010-08-14 Thread Rohan Jain
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

Re: Any job queue systems that integrates with Django & allow scheduling jobs by date?

2010-08-17 Thread Rohan Jain
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

Re: Object ID is not assigned after calling save() on a new object

2010-08-24 Thread Rohan Jain
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

Ajax with Django

2010-02-04 Thread Rohan Shah
Any good documentation available on how to implement AJAX with Django ? -- Thanks and Regards, Rohan Shah ++[>>++>+++>+<<<<-] >++. >+++.---. ---.. >++. <<+. >--. ---.+++. -- You receiv

Can't able to accept the friend request in my django website

2021-12-02 Thread Rohan buks
['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', '

Re: secret api keys

2022-10-26 Thread Michael Rohan
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

Re: ANN: django-yamlconf 1.0.0

2019-02-28 Thread Michael Rohan
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

ANN: django-yamlconf 1.1.0

2019-03-17 Thread Michael Rohan
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

New functionalities expected in Django 2.

2017-06-13 Thread Rohan Purekar
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

How to set custom template in Class PasswordResetView

2017-06-13 Thread Rohan Purekar
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

ANN: django-yamlconf v1.2.1 is available

2020-02-24 Thread Michael Rohan
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

Re: sphinx inside

2020-05-01 Thread Michael Rohan
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

Re: How can I create a new table without primary key filed?

2015-11-24 Thread Rohan Nagalkar
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

ANN: django-yamlconf 1.0.0

2018-08-13 Thread Michael Rohan
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

Django Mysql Bulk_Create Ids

2020-09-27 Thread Rohan Nahata
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

Re: Django SECRET KEY

2020-11-04 Thread Michael Rohan
; 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 > . >

ANN: django-yamlconf v1.4.0 is available

2021-03-03 Thread Michael Rohan
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

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-01-30 Thread Michael Rohan
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

Re:

2020-02-22 Thread ROHAN Gupta
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

ANN: django-yamlconf v1.2.0 is available

2020-02-23 Thread Michael Rohan
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