Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30812

Re: How to create a login screen using core python language without using any framework

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'frameworks': 0.05; 'framework.': 0.07; 'mentioned,': 0.07; 'username,': 0.07; 'subject:How': 0.09; 'python': 0.09; 'directions': 0.09; 'django,': 0.09; 'frameworks,': 0.09; 'information?': 0.09; 'subject:create': 0.09; 'subject:language': 0.09; 'subject:using': 0.09; 'turbogears': 0.09; 'cc:addr:python- list': 0.10; 'django': 0.10; "wouldn't": 0.11; 'subject:python': 0.11; 'language': 0.14; 'received:74.125.82.44': 0.15; 'tutorials': 0.15; 'above?': 0.16; 'accounts?': 0.16; 'entries,': 0.16; 'framework,': 0.16; 'oct': 0.16; 'rewriting': 0.16; 'subject: \n ': 0.16; 'subject:core': 0.16; 'subject:login': 0.16; 'subject:screen': 0.16; 'tutorials.': 0.16; 'wrote:': 0.17; 'implementing': 0.17; '(or': 0.18; 'code.': 0.20; 'earlier': 0.21; 'fairly': 0.21; 'button,': 0.22; 'hours,': 0.22; 'of.': 0.22; 'own.': 0.22; 'cc:2**0': 0.23; 'example': 0.23; 'work.': 0.23; 'flexibility': 0.23; "haven't": 0.23; 'cc:no real name:2**0': 0.24; 'tried': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'creating': 0.26; 'am,': 0.27; 'possible,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'consisting': 0.29; 'description,': 0.29; 'questions.': 0.29; 'them?': 0.29; 'yes.': 0.29; 'case,': 0.29; 'probably': 0.29; 'install': 0.29; 'worked': 0.30; 'attach': 0.30; 'framework': 0.30; 'fri,': 0.30; 'basic': 0.30; 'button': 0.30; 'could': 0.32; 'received:74.125.82': 0.33; 'like:': 0.33; 'agree': 0.34; 'received:google.com': 0.34; 'list': 0.35; 'described': 0.35; 'mine': 0.35; 'saved': 0.35; 'especially': 0.35; 'so,': 0.35; 'similar': 0.35; 'there': 0.35; 'really': 0.36; 'but': 0.36; 'received:74.125': 0.36; 'totally': 0.36; "didn't": 0.36; 'should': 0.36; 'problems': 0.36; 'display': 0.36; 'possible': 0.37; 'bad': 0.37; 'option': 0.37; 'two': 0.37; 'why': 0.37; '(for': 0.37; 'subject:: ': 0.38; 'store': 0.38; 'some': 0.38; 'login': 0.38; 'page': 0.38; 'build': 0.39; 'list,': 0.39; 'application': 0.40; 'where': 0.40; 'header:Received:5': 0.40; 'help': 0.40; 'think': 0.40; 'your': 0.60; 'free': 0.61; "you'll": 0.62; 'provide': 0.62; 'day.': 0.63; 'mentioned': 0.63; 'different': 0.63; 'accounts': 0.63; 'success': 0.63; 'ever': 0.63; 'details': 0.63; 'email addr:gmail.com': 0.63; 'more': 0.63; 'services': 0.64; 'decided': 0.65; 'websites': 0.66; 'account': 0.67; 'records': 0.68; 'online': 0.70; 'clicking': 0.75; '1st': 0.81; 'examples.': 0.84; 'fields,': 0.84; 'flexible,': 0.84; 'subject:any': 0.84; 'wheel': 0.84; 'joel': 0.91; 'dream': 0.95
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=O6p5EV0Tyob/K/fG2+UAj8jQsOEEGldas9BU+msSbYU=; b=tX3AEpIMV4Pheoki7Dbc3NAPuce+WLytTUe6XN5D/MwHGxiqb44ln5TO5noq8QNLpy 8tVMpHvOQwVRA7qe4j58ctmb3+32sQUNth4mmdffs/QyzR73LyNVVfmU7NZ8MylfYljz wb0he14UzJKlZ0eAB/2sTUGxm/I33n4aWxG0TyKn+MYCKX61Kz0l4jaJEYghROwX3Uc0 b7ZKIaKFAEqCnVgoPhiQBRJUC3tddHKrlmLZk3yEGHJMnP4VeVOkTdwbVDP3eTpwsu5T pL75Ui/SwcWl7kBXiCJJWRGcCkNTAPCnFsE+KijqbAn2yebK71soGj5poqeR/lRr0fvG d/xQ==
MIME-Version 1.0
In-Reply-To <506ea86d$0$6969$e4fe514c@news2.news.xs4all.nl>
References <97fa2804-adda-428f-a78a-d9ab3e22e965@googlegroups.com> <506ea86d$0$6969$e4fe514c@news2.news.xs4all.nl>
Date Fri, 5 Oct 2012 09:11:31 -0400
Subject Re: How to create a login screen using core python language without using any framework
From Joel Goldstick <joel.goldstick@gmail.com>
To Hans Mulder <hansmu@xs4all.nl>
Content-Type text/plain; charset=UTF-8
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1851.1349442693.27098.python-list@python.org> (permalink)
Lines 81
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1349442693 news.xs4all.nl 6875 [2001:888:2000:d::a6]:51591
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30812

Show key headers only | View raw


On Fri, Oct 5, 2012 at 5:29 AM, Hans Mulder <hansmu@xs4all.nl> wrote:
> On 5/10/12 10:03:56, shivakrshn49@gmail.com wrote:
>> I need to develop a simple login page using Python language with
>> two fields and a button, like:
>>
>>     Username, Password, Login
>>
>> I know there are some beautiful Python frameworks like
>>
>>     Django, Grok, WebPy, TurboGears
>>
>> which support web development using Python, but mine is a basic
>> requirement consisting of only 3 screens (pages):
>>
>> * 1st page  -  Login page (Redirects to 2nd page when login button
>>   is clicked)
>> * 2nd page  -  Page with records in the form of a list, with an
>>   option for adding new records (Redirects to 3rd page when "Add
>>   Records" button is clicked)
>> * 3rd page  -  Page with fields, which are saved as records for
>>   the list on 2nd page  (After entering details and clicking Submit)
>
> Implementing your application using any of those frameworks you
> mentioned, would be easy.
>
>> So, I have decided to develop the above functionality using Python
>> **without** using any framework, so that I can have flexibility as
>> well as write my own code.
>
> This is a bad idea.  You'll get much more flexibility using
> an existing framework then you'd ever achieve by reinventing
> the wheel on your own.  Especially if you have no experience
> in this field.
>
>> 1. Is it possible to create a login page using Python without
>> using a framework?
>
> Yes.
>
> But it's a lot of work.  You'd effectively be rewriting all
> the functionality you'd get for free with a framework.  And
> it wouldn't be as flexible, because frameworks can flex in
> directions that you didn't think of.
>
>> 2. I haven't worked on web services and don't know the basics of
>> web development in Python.
>
> In that case, your chances of success are fairly slim.
>
>> 3. If possible, can you provide me an example on how to create a
>> login page using Python and achieve the functionality described
>> above?
>
> The frameworks you mentioned earlier come with tutorials.
> These tutorials contain such examples.
>
> You should really use an existing framework.  Once you're
> aware of how much functionality you get out of a framework
> (any of them), you wouldn't dream of rewriting all that
> functionality on your own.

I totally agree about using a framework.  You say you want a 'simple'
3 page website.  Why do you think it is simple?  You say you don't
have any skills at creating websites with python.  From your
description, you will need to build a directory of entries, a form,
and attach it to a database, so that means you also need to understand
sql (or something!). You need to display individual records I imagine.
 Do you need to edit them after they are created?  How are you going
to manage the accounts?  Will you create them?  Will you let the
visitor create an account?  Where will you store the account
information?  Do different accounts have different permissions?

If you install django (for instance), go through the online tutorials
in about 2 hours, you could probably build your specification in a
day.  Even if you have problems there is an active django mailing list
to ask specific questions.  I haven't tried the other frameworks, but
there might be similar help available for them.


-- 
Joel Goldstick

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to create a login screen using core python language without using any framework shivakrshn49@gmail.com - 2012-10-05 01:03 -0700
  Re: How to create a login screen using core python language without using any framework Hans Mulder <hansmu@xs4all.nl> - 2012-10-05 11:29 +0200
    Re: How to create a login screen using core python language without using any framework Joel Goldstick <joel.goldstick@gmail.com> - 2012-10-05 09:11 -0400
    Re: How to create a login screen using core python language without using any framework Demian Brecht <demianbrecht@gmail.com> - 2012-10-05 07:41 -0700
  Re: How to create a login screen using core python language without using any framework Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-10-05 14:13 -0400

csiph-web