how to use a customized logging formatter class

2012-10-20 Thread Ali
I have written this custom formatter which inherits from logging.Formatter, how can I configure logging settings so that I can use this for a logger. I see the example in docs where I can update the formatter string but dont know how to link a class to do that. class UniqueRequestIdFormatter(lo

Identify what management command is being executed

2013-01-28 Thread Ali
In my django project I have written some custom management commands which run on the server. These custom commands in turn call different functions during execution. I want a way to set a global variable/field or a way to find out what command is being executed. One obvious usage is write log m

Re: Problen with Custom command and Bash Script

2013-02-06 Thread Ali
I think this has to do with not mentioning the proper settings file. manage.py goes to the settings and checks all the installed apps for any custom commands, but if you haven't set proper settings file then it would not recognize those commands. You can either set the environment variable to D

Master Slave django applications

2010-04-28 Thread Kashif Ali
Hi, I am working on an applications that is divided into two parts i.e. master, slave. Master application will be used for handling the slave applications and will be installed on a single server while slave will be installed on more than one servers. Actually i have a django based application (s

Refresh django settings without restarting apache

2010-04-29 Thread Kashif Ali
Hi, Is it possible to refresh changes to apache (webserver) without restart it? Actually i have multiple databases that i need to change while the webserver is running. Is it possible? Or any other way to accomplish this task? i.e. use multiple databases for django application. Regards, Kashif

Re: Refresh django settings without restarting apache

2010-04-29 Thread Kashif Ali
Thanks for your response. One more question: Is it possible with mod_python?. This is because i am using mod_python currently not WSGI. On Thu, Apr 29, 2010 at 9:57 PM, ge...@aquarianhouse.com < ge...@aquarianhouse.com> wrote: > Sure, with WSGI script reload > > On Apr 29, 6:51

Re: Refresh django settings without restarting apache

2010-04-29 Thread Kashif Ali
Thank you Georg i am checking into it. On Thu, Apr 29, 2010 at 11:01 PM, ge...@aquarianhouse.com < ge...@aquarianhouse.com> wrote: > it should be already switched on > > http://www.modpython.org/live/current/doc-html/dir-other-par.html > > On Apr 29, 7:14 pm, Kashif Ali

Re: Looking for a Django Developer

2010-05-21 Thread Kashif Ali
Hi, I am interested. I am a python django developer working from last 2 year almost for an American company devpond.com for the development of their indoor used applications. We have one commercial application too that you can see here (http://www.devpond.com/vscontrol/) and more coming soon. I w

Re: CSRF token not adding hidden form field

2010-06-11 Thread Ali Kusnadi
On 6/11/10, Joel Klabo wrote: > yeah, still 403. CSRF token missing or incorrect. > try add the 'django.core.context_processors.csrf' in your settings.py TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.csrf', ) > > -- > You received this message because you are sub

Re: Having issue setting UP admin section in Dajngo

2010-09-06 Thread Ali Ahsan
Hi Thanks for replay Issue got solved when i added my hostname in setting.py. On Mon, Sep 6, 2010 at 12:10 PM, Kenneth Gonsalves wrote: > On Sun, 2010-09-05 at 22:29 -0700, aliahsan wrote: > > 26. ^admin/(.*) > > this may be the offending line - which version of django are you using > and which

Re: Having issue setting UP admin section in Dajngo

2010-09-07 Thread Ali Ahsan
Hi Keeneth Sorry i was wrong django version is 1.0.4,And in same version app was written. below is my urls.py for admin section (r'^captcha_img/$','captcha_img'), #Captcha Image #(r'^captcha_my_img/$','captcha_my_img'), #Captcha Image (r'^admin/(.*)', admin.site.root), On Mon, Sep 6,

Re: Having issue setting UP admin section in Dajngo

2010-09-07 Thread Ali Ahsan
Hi Do you have any idea what could be wrong.I am using lighthttpd with django On Tue, Sep 7, 2010 at 2:22 PM, Kenneth Gonsalves wrote: > On Tue, 2010-09-07 at 13:30 +0500, Ali Ahsan wrote: > > (r'^admin/(.*)', admin.site.root), > > as far as I remember this is correc

Re: Having issue setting UP admin section in Dajngo

2010-09-07 Thread Ali Ahsan
Actually what is happening after login to admin it keep up adding setting.fcgi to URL http://172.16.100.231/setting.fcgi/admin/ On Tue, Sep 7, 2010 at 2:28 PM, Ali Ahsan wrote: > Hi > > Do you have any idea what could be wrong.I am using lighthttpd with django > > On Tue, Sep

How to write good form validation in Django?

2010-12-10 Thread Ali Ghaffari
I've seen Django's samples and I can see they have decent error handling. However I want to see if there is yet a better approach, a general pattern to handle form validation errors in Django. This is the sample I found here: def contact(request): if request.method == 'POST': # If the form has

Re: any django users in Cuba?

2007-06-06 Thread Alfonso Ali
jango for the developer's team of infomed. Regards, Ali On 6/5/07, Lic. José M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote: > > there is any django users in Cuba or just a cuban user? > > -- > Lic. José M. Rodriguez Bacallao > Cupet > > > --~--~

Re: problem representation

2007-06-06 Thread Alfonso Ali
another option could be use the contenttype framework, it's not well documented but using the source and examples could help, take a look here http://feh.holsman.net/articles/2006/06/03/django-contenttype to get an idea about the framework and links to examples. Regards, Ali On 6/4/07, J

HOLİDAY http://aliozturk.blogcu.com/3617613/

2007-07-17 Thread ali öztürk
20/6/2007: Maldives Holidays http://aliozturk.blogcu.com/3617613/ 20/6/2007: Boston Holidays The Cradle Of Modern America 20/6/2007: Atlanta Holidays 20/6/2007: New York, New York -

Maldives Holidays Boston Holidays Holidays in Dubai

2007-08-11 Thread ali öztürk
15/6/2007: Yahoo! hits flack from shareholders 15/6/2007: IBM avoids $1.6bn taxes days before loophole shut 15/6/2007: Intel targets developing world with basic laptop for childrenTom Bawden in New York

BBC NEWS Motorcyclist murdered on motorway http://bbcworldnews.blogcu.com/

2007-08-12 Thread ali öztürk
12/8/2007: Call for debate on independence 12/8/2007: Motorcyclist murdered on motorway 12/8/2007: UK soldier killed in Afghanistan 12/8/2007: E German 'licence to kill' fou

[no subject]

2008-02-22 Thread Ashfaq ali
Hi Here is an opportutnity for you to earn money for your opinion. Click the link below https://paydotcom.com/r/11804/drali1984/3272604/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Django Admin Model View Page

2008-06-04 Thread Ali Sogukpinar
uch a functionality? Thanks in Advance. Ali --~--~-~--~~~---~--~~ 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

Re: Django Admin Model View Page

2008-06-04 Thread Ali Sogukpinar
action for presenting the details of a model in the admin application. I will check it out the databrowse application. Thank you. Ali On Jun 4, 1:44 pm, yml <[EMAIL PROTECTED]> wrote: > Hello, > I would recommend you to look at : > databrowsehttp://www.djangoproject.com/documenta

Amisha Patel Maxim Magazine Photo Scans

2008-06-26 Thread ALI RAHMAN
For More Pics, Photos, Movie Etc. Visit On *http://celebmasti.blogspot.com/* --~--~-~--~~~---~--~~ 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

Transaction Support in Models

2007-05-07 Thread Ali Alinia
hi every body, i want to now: A. do models support transactions? if yes, how? and if no, why? B. can we have multiple orders in our models(getting /fetching) records from our backend DB? C. can we use stored procedures (sp) through our models? --~--~-~--~~~---~--~-

Re: Transaction Support in Models

2007-05-07 Thread Ali Alinia
tnx Martin :-) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED]

Re: Transaction Support in Models

2007-05-07 Thread Ali Alinia
still another question with models: what about ordering and update/delete statements that have limit clause? for example, I want to delete/update records first five records of my table (model) order by creation date (field:creation_date) and rate (field:rate) how can i do that in my models? --~

Re: Transaction Support in Models

2007-05-07 Thread Ali Alinia
hi Russ, I have crawled! all of the documentation, but I don't find anything to help me. in which section of documetation is my answer? tnx Russ, (and I'm so sorry for my quick replies) --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Newforms / Validation / Uniqueness

2007-05-30 Thread Alfonso Ali
validation and DRY when your form's fields match your model. Regards, Ali On 5/29/07, ringemup <[EMAIL PROTECTED]> wrote: > > > Hello -- > > I'm using a basic form_for_model() form object for a model that has a > unique=True constraint on a field other than the

[no subject]

2021-10-19 Thread Waqas Ali
Hi Maryam whare you from? -- 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 discussion on the web visit ht

Django admin Ordering the display

2022-04-02 Thread Ali Hamza
How i Order this field descending order. i want completeorders show first then completemodules [image: DeepinScreenshot_select-area_20220402171316.png] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: What do they mean, exactly

2022-05-27 Thread Sabir Ali
(Hpenv) E:\HealthPrediction>python manage.py makemigrations *No changes detected* (Hpenv) E:\HealthPrediction> "No changes detected' what will i do Please help me. I am beginner in django. Please help me On Friday, May 27, 2022 at 2:12:09 AM UTC+5:30 dcol...@gmail.com wrote: > I was reading

Re: Job -Fullstack python expert ( Django framework)

2022-08-18 Thread Ali Moosavi
I'm also interested. On Fri, Aug 19, 2022 at 12:22 AM Sympa Kalambay wrote: > I’m interested > > Le jeudi 18 août 2022, Each1Teach1 a > écrit : > >> This project is very straight to the point. We are building a micro >> service on top of Django framework. We currently have a virtual private >>

Questions about UnicodeDecodeError

2012-03-30 Thread Ali Mesdaq
ay to deal with these cases gracefully in the models __unicode__ method but nothing I have tried has worked. Thanks, Ali Mesdaq Security Researcher Cell: +1 (619) 952-8488 | Fax: +1 (408) 321-9818 Email: ali.mes...@fireeye.com Next Generation Threat Protection http://www.FireEye.com <http

Re: Questions about UnicodeDecodeError

2012-04-02 Thread Ali Mesdaq
django even work. I tried to get my app to work by creating the __unicode__ method return a string of "blah" and it still dies on me. Thanks, Ali Mesdaq Security Researcher Cell: +1 (619) 952-8488 | Fax: +1 (408) 321-9818 Email: ali.mes...@fireeye.com Next Generation Threat Prote

Help.......!!

2012-05-14 Thread Ali Shaikh
Hi Django.. I Am implementing Django front end setup and Am using SQLite as Database for my project...Am new to djnago family . Help me to implement 1.Determine all network interface connected to system 2.Determine all ENABLED interfaces 3.start monitoring all enabled interface. Thank

Re: Help - Which IDE is best to use.

2012-05-14 Thread Ali Mesdaq
If you can pay for the full version Komodo has been working awesome for me not only for Django but for almost any kind of development work. Thanks, Ali Mesdaq Security Researcher Work: +1(408) 321-7779 | Fax: +1 (408) 321-9818 Email: ali.mes...@fireeye.com Next Generation Threat Protection

Re: Help - Which IDE is best to use.

2012-05-15 Thread Ali Mesdaq
development. To me going back to Vim from Komodo is like going back to the stone age. Just as we are always looking for the best web technologies to develop on that make our lives easier and solutions better we should also do the same with our development environments. Thanks, Ali Mesdaq Security

GUI for network interface

2012-05-16 Thread Ali Shaikh
hi Django...!! I want to implement GUI for ma projectusing Django. Like in network different host are connected ,for that need to proved components like connect,disconnect ,status n all related staff Please help me to develop this GUI using Django.. Thank You -- You received

import error: no model named .....

2012-05-17 Thread Ali Shaikh
Hey... I am practicing to implement simple examples in django... started project with 1.django-admin.py startproject wikicamp 2.python manage.py startapp wiki 3.editing the setting 4.python manage.py syncdb 5.python mange.py runserver till this stage its working fine:) But after

Stuck in URL............!!! Help

2012-05-18 Thread Ali Shaikh
Using the URLconf defined in wikicamp.urls, Django tried these URL patterns, in this order: 1. ^wikicamp/(?P[^/]+)/edit/$ 2. ^wikicamp/(?P[^/]+)/save/$ 3. ^wikicamp/(?P[^/]+)/$ The current URL, wikicamp/, didn't match any of these. --- Any ideas? I'm admittedly lacking in the regex department

Python Web Development with Django by Wesley Chun

2012-05-21 Thread Ali Shaikh
Hey Django.!! Please can anyone share Python Web Development with Django by Wesley Chun E-Book?? Thank Yooo -- 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

Re: Python Web Development with Django by Wesley Chun

2012-05-22 Thread Ali Shaikh
Dear Russell , Actually I wanted to ask free PDF file fro that book.Am sorry,I wont repeat this On May 22, 12:12 pm, Russell Keith-Magee wrote: > On Tue, May 22, 2012 at 1:05 PM, Ali Shaikh wrote: > > Hey Django.!! > > > Please can anyone share Python We

Parent module does not exist

2012-05-26 Thread Ali Shaikh
Hello!! ViewDoesNotExist at /wikicamp/start/ Could not import wikicamp.views.view_page. Parent module wikicamp.views does not exist. Request Method: GET Request URL:http://localhost:8000/wikicamp/start/ Django Version: 1.4 Exception Type: ViewDoesNotExist Exception Value: Could no

global name 'content' is not defined

2012-05-27 Thread Ali Shaikh
'model.py` from django.db import models class Page(models.Model): name = models.CharField(max_length=20, primary_key=True) content = models.TextField(blank=True) # Create your models here. `view.py` from wiki.models import Page from django.shortcuts import render_to_res

Accessing Backend DB for UI

2012-06-05 Thread Ali Shaikh
Hey.. I am working for project, in that the back-end code is return in perl and am working for front-end part i.e UI using Django, Can any one can tell me how to access back-end database which is return in perl or any othere languages .?? Pls help Thank You -- You received this messag

how to have admin not generate insert command for a particular field?

2012-06-10 Thread ali alizadeh
hi how to have admin not generate insert command for a particular field, so that the field gets its value at database level. I tried adding `editable=False` to field options of that particular field in my model, but no luck. also i don't want to use `default` field option. I need the field to take

Super slow authentication

2012-07-03 Thread Ali Mesdaq
authentication which was not happening before but is happening now. I have not seen anything in the logs or error messages to help me track down the cause of this issue. The system is centos 5 and is running apache + wsgi. The django version is 1.3. Thanks, Ali Mesdaq Security Researcher Email

Re: Super slow authentication

2012-07-05 Thread Ali Mesdaq
rator on my view methods and redirecting to the login url. The one thing I have noticed about this setup is that on my dev box which is 10.04 Ubuntu its not as slow as the centos 5 machine its running on however they are both slow. Thanks, Ali Mesdaq Security Researcher Work: +1(408) 321-7779 |

Re: Billing and invoicing app?

2012-10-23 Thread Ali Nikneshan
Check this one, http://eldarion.com/blog/2012/10/23/easily-add-stripe-payments-your-django-site/ Just published :) Ali On Wednesday, October 24, 2012 6:56:42 AM UTC+3:30, Mac wrote: > > I'm not sure if there's anything that is django-specific. There are a lot > of payment

raw query placeholder "%(key)s" supported in django?

2011-12-25 Thread ali alizadeh
hi. in psycopg module, when composing a query, you can use "%(key)s" in your query instead of "%s", and pass a dictionary instead of a list for actual parameter. django docs mention the "%s" syntax for raw queries. i was just wondering if the other syntax is supported or not, because it can be han

raw query placeholder "%(key)s" supported in django?

2011-12-28 Thread ali alizadeh
hi. in psycopg module, when composing a query, you can use "%(key)s" in your query instead of "%s", and pass a dictionary instead of a list for actual parameter. django docs mention the "%s" syntax for raw queries. i was just wondering if the other syntax is supported or not, because it can be han

Re: Cheap Django hosting?

2012-01-02 Thread ali alizadeh
hi. sorry, but i'm new to this mailing list. can somebody tell me how can i post a question? i tried sending an email to "django-users@googlegroups.com" but i keep receiving a failure notice. On Tue, Jan 3, 2012 at 4:36 AM, Alec Taylor wrote: > Webfaction seems to be the best so far, offers lot

django doesn't send me error mails

2012-12-16 Thread Ali Vakilzade
I can send mails using send_mail or mail_admins methods but django it self doesn't send me any mail on 404 error or 500 error. I have even added raise Exception('Test') to my view function I see the 500 error for that but no mail was sent This is my settings.py: http://dpaste.com/846959/ I use

Re: django doesn't send me error mails

2012-12-16 Thread Ali Vakilzade
;ve set the admin email to ... i'm > sure that doesn't exist! :) > > Seriously, though... all that looks correct. Can you check your server's > /var/log/maillog to see if the mail is being accepted? > > On Sunday, December 16, 2012 1:33:01 PM UTC-8, Ali Vakilzade w

Re: django doesn't send me error mails

2012-12-17 Thread Ali Vakilzade
he console instead. Check out the "from" headers and make > sure they make sense. Compare that to the other kinds of email that are > sent. > > (Make sure you're still running with DEBUG=False) > > > > On Sunday, December 16, 2012 2:18:26 PM UTC-8, Ali Vakilza

How to add an element of derived data to a Django model?

2013-01-05 Thread Saqib Ali
I have a Django Model as follows: class myModel(models.Model): a = models.IntegerField() b = models.IntegerField() I want to add a models.BooleanField() named c to the myModel class. However the value of c is simply derived from a and b so I don't want it to be stored in the Da

Re: How to add an element of derived data to a Django model?

2013-01-05 Thread Saqib Ali
> I think you can write a function that returns a > b and then make it a > getter method with python's property. > > i would have given an example but typing code from my phone isn't very > appealing. > > Sent from my Windows Phone > > -Original Mess

CSRF Verification error appeared after I changed DNS

2013-01-08 Thread Saqib Ali
Hi. I have been using Django successfully for a few days now. I was running my django application on an Amazon Web Service machine. I was assigned some arbitrary DNS name that looked like this: http://ec2-XXX.XXX.XXX.XXX.compute-1.amazonaws.com. My Django app was working find with my model and

Re: CSRF Verification error appeared after I changed DNS

2013-01-08 Thread Saqib Ali
BTW, I forgot to mention that my template contains the following HTML: {% csrf_token %} E-mail: On Tuesday, January 8, 2013 6:44:49 PM UTC-5, Saqib Ali wrote: > > > Hi. > > I have been using Django successfully for a few days now. I was running my > django

Re: CSRF Verification error appeared after I changed DNS

2013-01-08 Thread Saqib Ali
s there any csrftoken ? > > Did you change SESSION_COOKIE_DOMAIN ? > > On Wednesday, January 9, 2013 1:19:35 AM UTC+1, Saqib Ali wrote: >> >> BTW, I forgot to mention that my template contains the following HTML: >> >> {% csrf_token %} >> >> E

Django Calendar App Just Like Google Calendar

2013-01-11 Thread Kashif Ali
Hello Guys, Is there any django app available that is a replica of google calendar? I have checked django-scheduler, django-swingtime and couple of more but the hardest part with these apps/projects is the limited documentation. Can anybody please guide me what app can serve my purpose? Thanks, K

Best/Cleanest way to add fields to Class User in models.py?

2013-01-11 Thread Saqib Ali
In my models.py, I use django.contrib.auth.models.User as a foreign key in many of the classes I created. The User class obviously has a lot of important features that any website developer will need to track and manage users to the website. However, I wish the class had three additional member

Re: Best/Cleanest way to add fields to Class User in models.py?

2013-01-11 Thread Kashif Ali
, Jan 12, 2013 at 12:06 PM, Saqib Ali wrote: > > In my models.py, I use django.contrib.auth.models.User as a foreign key > in many of the classes I created. > > The User class obviously has a lot of important features that any website > developer will need to track and manage us

Re: Best/Cleanest way to add fields to Class User in models.py?

2013-01-12 Thread Saqib Ali
are shown to me in the Admin interface. If I create and implement UserProfile, then I will be creating a separate object -- not the same one from the Admin interface. So how do I work around that? - Saqib On Sat, Jan 12, 2013 at 2:40 AM, Kashif Ali wrote: > I will suggest to create UserProf

Re: Best/Cleanest way to add fields to Class User in models.py?

2013-01-12 Thread Kashif Ali
On Sat, Jan 12, 2013 at 1:27 PM, Saqib Ali wrote: > Kashif, if I do that, then there are more questions/issues: > > 1) Should user UserProfile be an extension of the User class? Or should it > be a completely separate, independent class? > > You can not extend User class/m

Django FormWizards: How to painlessly pass user-entered data between forms?

2013-02-13 Thread Saqib Ali
Crossposting from here: http://stackoverflow.com/questions/14860392/django-formwizards-how-to-painlessly-pass-user-entered-data-between-forms I'm using the FormWizard functionality in Django 1.4.3. I have successfully created a 4-step form. In the first 3 steps of the form it correctly takes

how to save manytomany relation data to database through form....

2013-03-02 Thread Iftikhar Ali
i am having one tag class and one user in which user contained a tag element which has manytomany relation with tag class can you guyz tell me how to save this tag using form i attached the form.py model.py and view.py my problem is the tag element i can't access through the form and don't

ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing

2013-04-25 Thread Iftikhar Ali
when i am running the project it is running perfectly fine but when i am trying to open django-admin.py shell the error: ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.con

Re: I encountered a core exception and need help configuring for a database. My OS is Ubuntu 12.10 32 bit

2013-04-25 Thread Iftikhar Ali
> > buddy i am also getting the same error... if you have so far got the > answer please help me too... > -- 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 djan

Re: Calling Jquery or javascript function based on an if condition

2013-04-25 Thread Iftikhar Ali
yes brother you can it is very easy just put your condition in and if you should have to know how the if condition is working in django templates {% ifequals comparator1 comparator2 %} call javascript function from here {% end ifequals %} -- You received this message because you are subscrib

Re: ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before access

2013-04-25 Thread Iftikhar Ali
> but while testing and pychecker i am getting this error how should i > configure DJANGO_SETTINGS_MODULE > -- 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 t

How to Handle XML and CSV processing in Django

2013-05-13 Thread Muhammad Ali
Hi All, I am currently learning Django and getting comfortable with it (having somewhat covered the official tutorial. :) ) I want to develop a Django-based app using open datasets that I downloaded from the web. But I hit a wall when I realized that I don't know how to handle processing the

Re: How to Handle XML and CSV processing in Django

2013-05-13 Thread Muhammad Ali
Russell, Thank you very much for the insight. This was very helpful. :) As for the "Django-specific format" that you mentioned, what are you referring to here? Thanks for your time. -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Re: How to Handle XML and CSV processing in Django

2013-05-14 Thread Muhammad Ali
Thanks a lot for these resources. All the best, Muhammad -- 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 post to

Re: How to Handle XML and CSV processing in Django

2013-05-15 Thread Muhammad Ali
Philip, thank you for the tutorial. That comes in very handy as well. All the best. :) -- 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..

Re: Hiring Django developers

2013-05-17 Thread Kashif Ali
Do you hire remote developers too? On Thu, May 16, 2013 at 10:47 PM, Jack Hanna wrote: > We are looking to hire Django developers at the following locations: > ** > Los Angeles, CA > San Diego, CA > Seattle, WA > Kuala Lumpur, Malaysia > > > Skills & Requirements: > > Must be at least interme

how to import excel file into django models?

2013-06-01 Thread Ali hallaji
-- 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 post to this group, send email to django-users@googlegroups.com. V

Re: Looking for Django Developers in the Region of Vienna Austria

2011-07-23 Thread Kashif Ali
I am python django developer having almost 5 years of experience including 3 years of django experience. I have more than 200 hours odesk time as well. Plz let me know if you have such kind of jobs for remote developer. Sincerely, Kashif On Wed, Jul 13, 2011 at 2:38 AM, Robert Boulanger < rober

Django regular expression urls wrong match

2011-01-20 Thread Ali Ismayilov
at pattern url matches with entry_archive_month view pattern. If I try to comment out that one too, it'll match with entry_archive_year. And then I try to comment out the last one too, it'll match with entry_archive. After commenting out the latter one, I'll get expected result: it&

How to do DB memcaching in Django with derived data?

2014-11-24 Thread Saqib Ali
My question is explained in detail here: http://stackoverflow.com/questions/27114947/how-to-do-db-memcaching-in-django-with-derived-data -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fr

Error: 'NoneType' object has no attribute 'strip'

2014-12-01 Thread Danish Ali
Hello, I am getting this error: Error: 'NoneType' object has no attribute 'strip' I have created a model and I am trying to autofill slug field in it. When I save the record in database I get this error: Error: 'NoneType' object has no attribute 'strip' My model is: from django.db import model

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-01 Thread Danish Ali
still same error. On Monday, December 1, 2014 5:36:52 PM UTC+5, WongoBongo wrote: > > Comment out the earlier slug field. What happens? > > # slug = models.SlugField(null=True, blank=True) > > K > > On Monday, December 1, 2014 4:12:45 AM UTC-8, Danish Ali wrote: >>

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-01 Thread Danish Ali
I am using admin to enter data. This is the URL from where I am trying to save records: http://127.0.0.1:8000/admin/product/shop/add/ On Monday, December 1, 2014 6:15:08 PM UTC+5, Jani Tiainen wrote: > > On Mon, 1 Dec 2014 04:12:45 -0800 (PST) > Danish Ali > wrote: > > >

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-01 Thread Danish Ali
error? > > Does it fail when trying to strip the contents of the "name" field? > > On Mon, Dec 1, 2014 at 10:16 AM, Danish Ali > wrote: > >> I am using admin to enter data. >> This is the URL from where I am trying to save records: >> http://127.0

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-01 Thread Danish Ali
I am not sure about that. is there any other easy way to get autofill slug then :) On Monday, December 1, 2014 6:34:05 PM UTC+5, Jani Tiainen wrote: > > On Mon, 1 Dec 2014 10:20:24 -0300 > Vijay Khemlani > wrote: > > > Have you tried following the stacktrace that resulted in the error? > > >

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-02 Thread Danish Ali
can someone help please ? On Monday, December 1, 2014 6:35:56 PM UTC+5, Danish Ali wrote: > > I am not sure about that. > is there any other easy way to get autofill slug then :) > > > On Monday, December 1, 2014 6:34:05 PM UTC+5, Jani Tiainen wrote: >> >> On

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-03 Thread Danish Ali
I also used this method. But I got same error in this method too. def save(self, *args, **kwargs): self.slug = slugify(self.name) super(Shop, self).save(*args, **kwargs) Please let me know if this is correct or not. -- You received this message because you are subscribed to the Google

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-03 Thread Danish Ali
this is stacktrace when I use: slug = AutoSlugField(populate_from='name') in my model Environment: Request Method: POST Request URL: http://127.0.0.1:8000/admin/product/shop/add/ Django Version: 1.7.1 Python Version: 3.4.2 Installed Applications: ('django.contrib.admin', 'django.contrib.auth'

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-03 Thread Danish Ali
so is there anyway to create slug automatically other than this ? On Thu, Dec 4, 2014 at 1:29 AM, donarb wrote: > On Wednesday, December 3, 2014 11:59:42 AM UTC-8, Danish Ali wrote: >> >> this is stacktrace when I use: slug = AutoSlugField(populate_from='n

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-05 Thread Danish Ali
list.php?50 > > You could also try using mysqlclient instead to see if you still have the > problem. That's django's recommended connector. > https://pypi.python.org/pypi/mysqlclient > https://docs.djangoproject.com/en/dev/ref/databases/#mysql-db-api-drivers > > Collin

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-06 Thread Danish Ali
vars". > > Collin > > > On Friday, December 5, 2014 8:55:06 AM UTC-5, Danish Ali wrote: >> >> If I remove slug code, then everything works fine. >> And can you tell me how can I expand the variables? >> >> Thanks >> >> On Fri, Dec 5

How do I test my Django App on my Phone

2013-12-09 Thread Muhammad Ali
Hello, I'm developing a Django-powered blog, with two versions: a desktop version and a mobile I optimized version for when it is accessed through a mobile device. Now, I'm trying to test it on my Samsung phone to see how it would look and act like when someone uses it through a mobile phone's

Re: How do I test my Django App on my Phone

2013-12-13 Thread Muhammad Ali
g up a URL using no-ip.org or similar service. > No-ip.org is free at this level and works great, at least on Ubuntu and > CentOS. I haven't tried other OS's. > > HTH, > Tim > > > > On Mon, Dec 9, 2013 at 5:08 PM, Tim Chase > wrote: > >> On 201

I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-23 Thread Ali Hayder
HI, My model like this > *mobile_name = models.CharField("Mobile Name", max_length=50)* * opinion = models.CharField('Comments', max_length=2000)* * total = models.FloatField('Total Mark')* the sql qery should like this "SELECT total FROM tablexyz WHERE mobile_name=xyz" Thanks in ad

Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread Ali Hayder
> > Hi Russ Magee > Thanks for your answer, but I am confused sort of. I want the total value from the model. "MyModel.objects.filter(mobile_name='xyz')" is this line of code can fetch me the value of total field? Thanks in advance -- You received this message because you are subscribed to th

Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread Ali Hayder
> > Hi Russ Magee > Thanks for your answer. I am confused a little bit. I think "MyModel.objects.filter(mobile_name='xyz')" line of code is like "SELECT * from table-xyz WHERE mobile_name=xyz" but I was looking for the alternative of "SELECT total FROM tablexyz WHERE mobile_name=xyz" Thanks i

Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread Ali Hayder
Hi, Kirby I found something. Is it will work? MyModel.objects.filter(mobile_name='xyz').values(total) Thanks for your support -- 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, se

Jquery Ajax Autocomplete

2014-01-14 Thread Ali Hayder
Hello guys, In my project's home page I have two forms for input two mobiles name for comparison. So I need to integrate ajax autocomplete in those input forms. I tried according to "Mike Hibbert" youtube tutorial. I am freaking out about this issue. I have not enough time to do this. Plzzz

prevent from backward in form

2014-05-31 Thread Ali hallaji
I submit the form and when I resend or backward the my webpage, my form dose appear again and save data in duplicate. please help me for solving this issue. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: prevent from backward in form

2014-05-31 Thread Ali hallaji
wrote: > Hi Ali, > > If you follow the pattern laid out in Django's documentation, you'll avoid > the problem: > > https://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view > > The key part is that on success, the form processing issues a > HT

  1   2   3   >