SitePoint Sponsor

User Tag List

Results 1 to 9 of 9

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Python/Django/Github Newb

    I am a pro at front end development but am just now starting on a project that requires first time usage for me of Python/Django/Github as well as MySQL (which I used one time before about four years ago). I have a lot of this set up but have a few newbie questions to ask to get things going for myself here on my own local machine. Would someone be willing to gmail chat with me to help me spread my own wings here or is it preferred that I ask all my questions within the public forum here? I can do it either way. This will just be a matter of finishing off a jigsaw puzzle that is about 85% complete.

  2. #2
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,280
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    Public forum is best, mostly because then the conversation is available to all.

    However SitePoint's Python/Perl section doesn't seem to get much traffic. The Perl I can see, but why Python isn't discussed so much, I have no idea.

    You are working with a Django project that already exists on github? Re the mysql: unless there's a way around it I don't know (and I'm a Django newb), you'll pretty much always be interfacing with Django's API instead of directly with teh DB (Django makes it seem as if you're working with an object-database instead of a relational db).

    You might as well also mention what you've got right now on your local machine. Also whether the team you're with prefers you do things in a virtualenv or with a particular version of Python or whatever.

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Stomme poes View Post
    You might as well also mention what you've got right now on your local machine. Also whether the team you're with prefers you do things in a virtualenv or with a particular version of Python or whatever.
    Looks like they want it in a virtualenv but I don't even know how to create one. Every time I ask them a question to clarify things their answer actually brings up more questions.

    If somebody will help me get this done through a chat I can paste the contents of the completed chat back into this thread.

  4. #4
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What I'm having trouble with now is getting my system to recognize the path to my Python install. I have precisely followed the directions found here:

    http://www.katsbits.com/tutorials/bl...m-variable.php

    yet when trying install the Python setup tools it keeps saying Python is not found in the registry.

  5. #5
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,280
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    Oh man, Windows.

    Before anything else, is it possible you have a *nix box lying around to use for this project? Everything I do with Django, Python, github, etc is done via the commandline, plus every once in a *great* while there's something where either there's no Windows version of it, or it works poorly.

    Also do you have the version of Windows these instructions reference, or Win7? Are you 32bit or 64bit? I've already found mention of some issues on StackOverflow when searching around.

    Virtualenv is pretty nice to have, especially if you're either working on many projects who each need their own version of Python, or working on a *nix machine which has a (different) system Python. With virtualenv, you get a special sandbox with a local Python (so if your system Python was 2.6 and you were working on a project which required 2.7 and another project which needed 3.0+, you could make a virtualenv with Python 2.7 and another with 3.0 while the rest of your system remains untouched. Similarly you can also exclude your system Python packages and only have local packages available... especially good if you need to simulate getting something working on some client's machine who doesn't have the same packages default that you have on your machine).

    If nobody here on SitePoint offers to do a chat (I really can't figure anything on Windows), you might want to use the various python irc channels for getting your path etc set up. *nix does this automagically so I've never once had to manually change my PATH variable (yet, fingers crossed).

    I'm actually right now setting up a laptop for installing a fresh Django so I'm going to be going through all the motions again (on Debian Linux) today.

  6. #6
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,280
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    Just happened to run across this article on LinkedIn's Python Community: http://pythoncentral.org/how-to-inst...ternal-command

    You don't have that error, but if you're running Win7 it does show a step-by-step to graphically setting your PATH for Python.

  7. #7
    Community Advisor ULTiMATE's Avatar
    Join Date
    Aug 2003
    Location
    Bristol, United Kingdom
    Posts
    2,160
    Mentioned
    46 Post(s)
    Tagged
    0 Thread(s)
    Have you added the Django calls to your environment variables?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •