top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Setting up for python django development with Debian Linux

+4 votes

I have been trying to set up a python, django, mysql, virtualenvwrapper and git development project and am really confused. All of the documentation seems to ignore the apt-get installation methods used by Debian Linux and its derivatives. Does pip install the same as apt-get; I don't think so. If I use virtualenvwrapper, how does this fit with the normal debian (wheezy) installation. I also need git which just confuses the situation even more. Must I give up the automatic updating system that Debian provides when setting up the development environment?

The documentation centers on Windows, Mac and generic Linux distributions and ignores the automation of the Debian installation. All of the documentation I have found concentrates on the installation of individual packages or on the use of python-django and is very sketchy on the overall virtualenv(wrapper), git, python-django file structure and installation order.

posted Oct 28, 2013 by Dewang Chaudhary

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

The two installation techniques (OS-centric and language-centric) overlap in some ways, and each has their own strengths. Some people prefer one, some the other.

I would use apt-get to install any non-Python packages, including Python itself. That would be Python, mysql, and git. I would also use apt-get to install virtualenv and/or virtualenvwrapper. Then create a virtualenv, activate it, and use pip to install the Python packages.

The advantage of virtualenv is that you can have more than one (for experimenting with other projects), you can delete the whole thing by just removing the directory, and it isolates you from the system-installed Python packages so you can be sure of what packages you are using.

The virtualenv is outside the scope of apt-get, so it's true, you won't have Debian helping to keep it up to date. On the plus side, not all Python packages are packaged as Debian packages, and those that are can
lag, so virtualenv+pip will give you more Python packages to choose from, and more recent ones.

answer Oct 28, 2013 by Meenal Mishra
0 votes
answer Oct 29, 2013 by Anderson
Similar Questions
+2 votes

I am trying to learn Django. My initial exercise seems fine. I want to create an API with REST on Django for an interactive Python code. REST framework on Django I am understanding more or less.

I am looking for a simple example to start with. I am using Python 2.7+ on MS-Windows 7 Professional.

If any one may kindly suggest.

0 votes

I'm new to Django. Is there any tell how to add a limit filter in Django?

0 votes

I am having trouble matching Python data types with those of MySQL. MySQL has about 7 basic data types including Blobs, Binaries, etc. It also has a rich selection of geometry types. In addition, types like INT have 7 or 8 different options like Primary Key, zero fill, auto inc, etc. I can't seem to find anything in python to match these. I am trying to build a for an existing database that was created with MySQL Workbench.

I do not wish to use anything other than MySQL because of the complexity of my storage needs (searchable text, PDF, Audio, Video and Photos). The text searches will often be word phrase searches through thousands of documents. I need the speed and the data type flexibility.

How do I build or modify a to do this. I really don't want to write a manually. That would really be a major pain. Workbench to the database an import to Django and edit is my choice. Unfortunately, the produced has lost most of the functionality of the original database and I can't seem to figure out how to fix it.

+1 vote

Is it possible to display a data grid table with django? Basically I am looking for displaying a data from the db table on the web interface through django or some other web interface.

My main application is in Python, that's why I'd like to explore Python possibilities first.

+1 vote

I have created a django project some months ago. It is an online survey. Now I want to add a button that when pressed adds something to a database, but does not change any existing functionalities.

Brief explanation:
button will always be present at the pages with survey questions,
when pressed it will simply add a page number (at which page user decided to press the button) to a database, but the user will continue with the survey as normal.
(when the button is pressed, the view, template, questions at hand should not change. Nothing changes for the survey subject!)

My question is how to simply add this button without interfering with the survey.
I do not need detailed instructions with models, views, templates, etc. just brief idea if it is possible to do that without adding new view, reloading view, adding forms etc...