Re: Django Interview Questions

2012-09-04 Thread Stephen Anto
Hi Guys, I have updated Django latest interview questions and answers. It may cover all technical requirements of the interview. Vist http://www.f2finterview.com/web/Django/ for latest Django interview questions and answers On Monday, November 2, 2009

Re: Django deployment questions

2012-09-04 Thread Stephen Anto
Hi Guys, For Django related questions and answers Pls visit http://www.f2finterview.com/web/Django/ On Sunday, September 2, 2012 10:37:03 AM UTC+5:30, Mike wrote: > > I just started to use Fabric to automate my deployments to my staging > server. (and w

Re: Django Interview Questions

2012-09-06 Thread Stephen Anto
>>> >>> apt-get install python-pip python-virtualenv virtualenvwrapper >>> cd code >>> mkvirtualenv some-django-project >>> pip install django >>> django-admin startproject somedjangoproject >>> cd somedjangoproject >>> python manage.p

Re: Can't Syncdb

2012-09-09 Thread Stephen Anto
Hi have you added your app in django settings Eg. settings.py in project root INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.co

Re: I can't install django on my mac. I'm not sure why. Details inside.

2012-09-09 Thread Stephen Anto
Hi, Try like this if you are using ubuntu ~$ python Python 2.7.3 (default, Apr 20 2012, 22:44:07) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> django.get_version() '1.3.1' or >>> django.VERSION (1, 3, 1, 'final', 0) >>> Not

Re: Static files not loading when debug is false

2012-09-09 Thread Stephen Anto
Hi Singh, I have configured static file for my projects as follows. In settings.py import os PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media') MEDIA_URL = '/site_media/' STATIC_ROOT = '' # URL prefix for static files. # Example: "http://m

Re: Django Interview Questions

2012-09-11 Thread Stephen Anto
UTC+5:30, Stephen Anto wrote: > > Hi Guys, > > The new modified questions and answers will be updated soon > > Thanks for posting your valuable feedback. > > On Wednesday, September 5, 2012 11:23:48 PM UTC+5:30, Amyth wrote: >> >> after reading this gui

Re: Dealing with big changelists in admin

2012-09-12 Thread Stephen Anto
Hi, There are lots of sources available on net for Django pagination. I am using django pagination on my website http://www.f2finterview.com/ for show questions and answers. each request fetches only five questions and answers (Eg. http://f2finterview.com/web/Django/) On Wed, Sep 12, 2012 at 1:4

Re: ViewDoesNotExist !?!?! It certainly does....

2012-09-12 Thread Stephen Anto
Hi, try this urls.py urlpatterns = patterns('app_root', url(r'^url_path/$','view_name',name='url_name'), ) view.py def view_name(request): your business logics return HttpResponse() I think it may work On Wed, Sep 12, 2012 at 9:51 AM, Lachlan Musicman wrote: > Hola

Re: Django and LDAP

2012-09-12 Thread Stephen Anto
Hi, Django instalation on ubuntu, I found key instructions on http://www.f2finterview.com/web/Django/4/ for more follow django instalation guide On Mon, Sep 10, 2012 at 11:44 PM, Tony wrote: > Hi everybody, > > I am new to Django and Python, and right now, i am going through the > documentatio

Re: Forms, ChoiceFields and import?

2012-09-12 Thread Stephen Anto
Hi, in forms.py import all from models.py forms.py: from tafe.models import * It may solve your problem. Thanks for visiting! and For Django Interview questions and answers On Wed, Sep 12, 2012 at 6:56 AM, Lachlan Musicman wrote:

Re: Iphone applications via django

2012-09-12 Thread Stephen Anto
Hi, Django piston is available to convert all django data into json via handler. You can use this json data to both web and mobile interface. Currently I am working on the same cheers... Thanks for visiting On Tue, Sep 11, 2012 at 2:29 PM, Sait Maraşlıoğlu wrot

Re: Dealing with big changelists in admin

2012-09-12 Thread Stephen Anto
Hi, Pls refer this link <http://f2finterview.com/web/Django/15/> http://f2finterview.com/web/Django/15/ it may give you solution On Wed, Sep 12, 2012 at 5:31 PM, Axel Rau wrote: > > Am 12.09.2012 um 10:27 schrieb Stephen Anto: > > > There are lots of sources availa

Re: Django html indention

2012-09-12 Thread Stephen Anto
Hi, Have you installed Aptana Plugin for eclipse. If not do it and get codding assistance..Thanks for visiting On Thu, Sep 13, 2012 at 2:50 AM, Sait Maraşlıoğlu wrote: > Im using eclipse and it has some nice features about indention, but its > only works with html cs

Re: Abstract classes and inhertience

2012-09-16 Thread Stephen Anto
Hi, Have you tried to fetch all data from models like Model.objects.all() It it is the way to fetch all data. Thank you for visitingFor Django On Mon, Sep 17, 2012 at 6:50 AM, Lachlan Musicman wrote: > Hola, > > I have an abst

Re: Hello World with Django

2012-09-18 Thread Stephen Anto
Hi, It is very simple to say hello world through Django projects, Only 7 steps ahead to say... Pls visit http://www.f2finterview.com/web/Django/17/ its clearly guide you step by step to say hello world via django. Thank you for visiting

Re: date display problem?

2012-09-18 Thread Stephen Anto
Hi, How to fetch data, are you fetching single row or multiple rows? offers = Offer.objects.all() for offer in offers: print offer.effective_date If you use like above it will work. pls check your code. Thank you for visiting For Django

Re: Beginer: Need Help in setting up goflow, could you please elaborate initial Gflow setup

2012-09-19 Thread Stephen Anto
Hi, There are 7 steps only to start your django project.. just visit http://www.f2finterview.com/web/Django/17/ it may give you solution. Than you for visiting On Wed, Sep 19, 2012 at 9:53 PM, Enator24 wrote: > Need Help in setting up goflow, could you please elab

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-19 Thread Stephen Anto
Hi, There are only 7 steps ahead to say 'Hello World' via Django project. Visit http://www.f2finterview.com/web/Django/17/ its tells how to make simple django project with seven steps. Thank you for visiting On Thu, Sep 13, 2012 at 2:55 PM, DJ-Tom wrote: > > Ok...

Re: Hello World with Django

2012-09-19 Thread Stephen Anto
Hi, There are 7 steps only to start your django project.. just visit http://www.f2finterview.com/web/Django/17/ it may give you solution.Than you for visiting On Wed, Sep 19, 2012 at 7:52 PM, Vernon Cole wrote: > 127.0.0.1 is -- by definition -- your local comput

Re: Beginer: Need Help in setting up goflow, could you please elaborate initial Gflow setup

2012-09-19 Thread Stephen Anto
; On Wednesday, 19 September 2012 23:10:35 UTC+5:30, Stephen Anto wrote: > >> Hi, >> >> There are 7 steps only to start your django project.. >> >> just visit >> http://www.f2finterview.**com/web/Django/17/<http://www.f2finterview.com/web/Django/17/> &

Re: SyntaxError Creating New Project

2012-09-19 Thread Stephen Anto
Hi, Just follow these 7 steps to start new project http://f2finterview.com/web/Django/17/ For more http://f2finterview.com/web/Django On Wed, Sep 19, 2012 at 1:49 AM, Bestrafung wrote: > I restarted from the beginning using the previously mentioned guide but > also a very helpful post on the cp

Re: Django confirm email. Change value from false to true

2012-09-20 Thread Stephen Anto
Hi, Just fllow bellow steps: In urls.py add bellow url urlpatterns = patterns('', url('^meeting/$', 'meeting', name='meeting'), url('^meeting/confirm/(\w+)/$','meeting_confirm', name='meeting_confirm'), ) In views.py add bellow methods def meeting(reques

Re: SyntaxError Creating New Project

2012-09-20 Thread Stephen Anto
at 3:35 PM, Daniel Roseman wrote: > On Thursday, 20 September 2012 05:20:56 UTC+1, Stephen Anto wrote: >> >> Hi, >> >> Just follow these 7 steps to start new project >> http://f2finterview.com/web/**Django/17/<http://f2finterview.com/web/Django/17/>For >&

Re: Browser get closed when clicked on others links

2012-09-20 Thread Stephen Anto
pls check browser settings. On Tue, Sep 18, 2012 at 5:20 PM, Pervez Mulla wrote: > Hi, > > I have developed simple website with Django framework. > > When i want to switch to other page, the browser getting closed..:( > > What the problem for this ? > > Thank You > Pervez > > -- > You received t

Re: Issues with validation

2012-09-20 Thread Stephen Anto
Hi me too get the same problem... anyone help us.. On Tue, Sep 18, 2012 at 3:42 PM, neeraj dhiman wrote: > I am using two models in my app and different form for each model, when I > tried to validate these two forms , one model is validated but other is not. > > model.py > > from django.db

Re: Beginer: Need Help in setting up goflow, could you please elaborate initial Gflow setup

2012-09-20 Thread Stephen Anto
goflow.instances* > > Thanks. > > > > On Thursday, 20 September 2012 09:43:48 UTC+5:30, Stephen Anto wrote: >> >> Yes there are lot of necessary settings in settings.py based on the >> requirement. If you need any other clarification, there are lot of docs >> availabl

Re: How often does Django need updates/patches?

2012-09-21 Thread Stephen Anto
Hi, Try to use Django stable version which is available on Django projects site. It is good practice. On Fri, Sep 21, 2012 at 8:26 AM, Taylor Smith wrote: > Our new website is being built on Django and we are trying to figure out > the easiest way to host and maintain the site. > It seems there

Re: url pattern matching

2012-09-21 Thread Stephen Anto
Hi url('^paperforms/$', 'view.methods', name='paperforms'), url('^paperforms/(\w+)/$', 'view.methods', name='paperforms_with_arguments'), It will work if you make your urls like this On Fri, Sep 21, 2012 at 7:57 PM, Brian Patterson wrote: > Hi Eve

Re: reduce number of DB-Queries

2012-09-21 Thread Stephen Anto
Hi, Try to use Django aggregation, example given on http://f2finterview.com/web/Django/14/ for Aggregation On Fri, Sep 21, 2012 at 2:29 PM, kloetpatra wrote: > Hi! > I have the following models: > > class Player(models.Model): > name = models.CharField('Name', max_length=40) > > def __

Re: Using email instead of username for registration and login

2012-09-24 Thread Stephen Anto
Hi, For login with email or username in Django visit http://www.f2finterview.com/web/Django/18/ it will give you direction On Tue, Sep 25, 2012 at 7:27 AM, Bill Beal wrote: > Hi all, > > I want to use the email address as the username for registration and > login. I'm using django-registration

Re: Problem with URL configuration - cannot use absolute URLs in my case

2012-10-09 Thread Stephen Anto
hi, try to user url name instead of using hard coded url link. it may solve your problem. On Mon, Oct 8, 2012 at 8:21 PM, Ramiro Morales wrote: > On Sat, Oct 6, 2012 at 10:25 PM, Rohit Banga > wrote: > > > > So how do I code my url conf / view / template in order to be > independent of > > myw

Re: Is there any small and easy website example available for Django?

2012-10-09 Thread Stephen Anto
hi, www.f2finterview.com has been fully developed by Django. On Tue, Oct 9, 2012 at 7:19 PM, Jon Crowell wrote: > I am also using djangobook.com. If it is outdated and not > recommended, then what resource should we use instead? Also, I find it > fairly relevant and easy to follow, so I'm curio

Re: New tutorial added to Django by Example

2012-10-17 Thread Stephen Anto
Could you give in detail, what issue you have faced? On Tue, Oct 16, 2012 at 9:55 PM, go scholarship < the.scholarship...@gmail.com> wrote: > hi, im using django 1.4 and when i follow you tutorial > http://lightbird.net/dbe/todo_list.html associating users with tasks did > not work well > > user

Re: Send data back to a table from template or send back to a view

2012-10-24 Thread Stephen Anto
Hi, Are you meant form submission? if Yes... Submit your form and get all submitted values in view method using request.POST/GET.copy() Thank you for visiting http://www.f2finterview.com/web/Django/ On Wed, Oct 24, 2012 at 11:35 AM, Coulson Thabo Kgathi wrote: > Please help i have send a dicti

Re: Billing and invoicing app?

2012-10-24 Thread Stephen Anto
Hi, Why can't you try it yourself, It is very easy only On Wed, Oct 24, 2012 at 7:38 AM, Jesramz wrote: > Quick question, is there a good billing and invoicing app, that anyone can > point me to? > > Thanks all! > > -- > You received this message because you are subscribed to the Google Grou

Re: [ver. 1.5] Specifying custom User model (extends AbstractUser) doesn't work

2012-10-24 Thread Stephen Anto
Hi, You can extend Default Django User model without breaking its architecture. Just visit http://www.f2finterview.com/web/Django/21/ It will explain you in detail. On Wed, Oct 24, 2012 at 9:32 AM, Surya Mukherjee wrote: > Django's standard User class isn't sufficient for my needs so I am making

Re: a way to display a model formset in a ModelAdmin ?

2012-10-25 Thread Stephen Anto
Hi, Create New adminmodel class and define fieldsets... For example http://www.f2finterview.com/web/Django/22/ it is clearly explain you On Thu, Oct 25, 2012 at 3:51 AM, Nicolas Emiliani wrote: > Hi, > > As the subject states, is there a way to display a model formset in a > ModelForm? > > The

Re: Populate database from views

2012-10-25 Thread Stephen Anto
Hi, if you have data in array list just use this for list in array_list: modelObj = YourModel() modelObj.fieldname = list modelObj.save() I believe it will help you... Thank you for visiting http://www.f2finterview.com/web/Django/ On Thu, Oct 25, 2012 at 3:05 PM, Coulson Thabo Kg

Re: Installing Djando and tutor polls app

2012-10-25 Thread Stephen Anto
Hi, as Lachian said, It is spelling mistake for ForeignKey. Just correct your word. On Fri, Oct 26, 2012 at 8:56 AM, Lachlan Musicman wrote: > On Fri, Oct 26, 2012 at 10:39 AM, Rodrigo Morgado > wrote: > > Hi everybody, > > > > I'm new in Django framework. I installed version 1.3.1 over Python

Re: [ANNOUNCE] Django 1.5 alpha 1 released

2012-10-25 Thread Stephen Anto
Hi, Nice to hear thank you so much for all who worked together for coming up new version. On Fri, Oct 26, 2012 at 1:28 AM, James Bennett wrote: > Our first milestone on the road to Django 1.5 came today, with the > release of the first alpha package. > > Blog post about it is here: > > https