{ "info": { "author": "Ardelean Vlad", "author_email": "vlad.ardelean@3pillarglobal.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: Free For Educational Use" ], "description": "dlp-assignment1\n===============\n\nThis contains the django project assigned in the training program.\n\n\nInstallation:\n==============\n\nLinux Debian:\n------------\nAssumptions: You have Python 2.7 (or above) installed:\n If you don't, run the command\n $ sudo apt-get install python\n\n1. Check if you have `pip` installed, and install it if required\n 1.1.Go to the console, and run the command\n $ pip\n 1.2. If the output contains \"Usage: pip COMMAND [OPTIONS] skip to step 2\n 1.3. If the output contained \"No command 'pip' found...\"\n 1.3.1. Run the command\n $ sudo apt-get install python-pip\n\n2. Check if you have virtualenv, and installing if required\n Note: This step can be entirely skipped if you don't want to install\n the packages into a virtualenv. Skipping this step however installs\n the packages globally, and might overwrite some of your other packages\n\n Other installed packages contain south 0.8.4 and django 1.6.1\n\n 2.1. Go to the console and run the command\n $ virtualenv\n\n 2.2. If the output contains \"You must provide a DEST_DIR\" skip to\n step 2.4.\n\n 2.3. If the output contains \"No command 'virtualenv'...\"\n 2.3.1. Run the command\n $sudo apt-get install virtualenv\n\n 2.4. Creating the virtual environment\n 2.4.1. Create a virtual environment inside a custom folder\n $ virtualenv /path_to_custom_folder\n\n 2.5. Activating the virtual environment\n $ source /path_to_custom_folder/bin/activate\n\n Say your virtual environment folder was ~/ve/DPL1_env, you should see\n your console prompt change, to include a (DPL1_env) at the\n beginning of the line. From now on, if you run the command\n `pip install`, every Python package should be installed in this\n custom folder. If the prompt doesn't change, check out the\n documentation for virtualenv http://www.virtualenv.org/en/latest/\n\n3. Install the application packages from the Pypi.\n 3.1. Run the command\n $ pip install dj-vga-w1\n\n This will install the package `dpl1_main` inside the\n site-packages folder of your python installation in the current\n python installation (inside the active virtual environment, if\n you have such an environment)\n\n 3.2. Sync your Database: run the command\n $ django-admin.py syncdb --settings=your.settings.module\n\n Note that for a settings module, you could use dpl1_main.DPL1.settings,\n but it's better to provide your own file. If need be, you could\n simply copy and modify this file.\n\n 3.3. Testing that the installation worked:\n 3.3.1. Running the tests for the application\n $ django-admin.py test dpl1_main.testing_app\n --settings=dpl1_main.DPL1.settings\n\n 3.3.2. You should see \"Creating test database for alias 'default'...\"\n in the output. If this isn't the case,\n 3.3.3. Run the command\n $ django-admin.py runserver --settings=DPL1.settings\n\n 3.3.4. If the output contains \"Validating models...\" skip to step 4.\n\n4. Deployment on apache2 with mod_wsgi\n Notice that in all the examples at step 3 the option --settings=... was\n used. You will have to provide that settings file for yourself, or\n customize the one given in order to change settings like the database\n connection engine.\n\n Also, the interaction between the apache server and the other components\n (for instance a database connector) is out of scope for this document.\n You will have to take care that the chosen server has the proper\n authorizations to work with the other systems.\n\n 4.1. Making the app work with mysql:\n In dpl1_main.DPL1.settings, you have the `DATABASES` entry\n DATABASES = {\n 'default': {\n 'ENGINE': 'django.db.backends.mysql',\n 'NAME': 'vwh_db',\n 'PORT': '3306',\n 'USER': 'root',\n 'PASSWORD': 'qwer',\n 'HOST': 'localhost'\n }\n }\n\n Notice the elements, because each one of them is important:\n 'ENGINE' - the value is standard, it's standard django engine for Mysql\n 'NAME' - the name of a schema that is hosted by the 'HOST'\n 'PORT' - the port the instance database server is listening on\n 'USER' - a valid user for the database, with rights\n 'PASSWORD' - the password\n 'HOST' - the address an IP address (or domain name) for the server\n hosting the database.\n\n5. Setting up a super user for the administration site\n 5.1. Run the command\n $ django-admin createsuperuser --settings=your.settings.module.here\n\n Note that the --settings=... option could be used with the provided\n dpl1.DPL1.settings module, however you should really use your own settings\n module.\n\n You will be prompted to create a super user.\n With this user you can administer your tests.\n\n6. Further considerations when using manage.py\n You should try you best avoiding to execute this module. Instead, you\n should use `django-admin.py --settings=your.settings.module.here`.\n Although some operations work when running the manage.py script, their\n success can't be guaranteed.\n\n Basically you should ALWAYS USE django-admin.py!!\n\n-This file is a copy of the old README.md file that could itself be added to\nMANIFEST.in file\n\n#TODO: deploying static files (.css)\n #TODO: make the admin site use the template I choose\n#TODO: some redirect bug? sometimes clicking on the test returns the 'home' page\n#TODO: unit tests with selenium to test the session wrappers\n#TODO: hook up the site with some CSS magic", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/vladiibine/dlp-assignment1", "keywords": "example tutorial django", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "dj-vga-w1", "package_url": "https://pypi.org/project/dj-vga-w1/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/dj-vga-w1/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/vladiibine/dlp-assignment1" }, "release_url": "https://pypi.org/project/dj-vga-w1/0.0.22/", "requires_dist": null, "requires_python": null, "summary": "The Django learning program project - a site where the usescan take tests, and the admins can maintain configurationsfor these tests", "version": "0.0.22" }, "last_serial": 1014917, "releases": { "0.0.22": [ { "comment_text": "", "digests": { "md5": "e269c4be534b0eac347cbea7622d8b4f", "sha256": "ca643961582849a3c36f7f69d83600f2409e2521bdf13d9065299f07de0f0f4b" }, "downloads": -1, "filename": "dj_vga_w1-0.0.22-py2.7.egg", "has_sig": false, "md5_digest": "e269c4be534b0eac347cbea7622d8b4f", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 222646, "upload_time": "2014-02-28T13:00:49", "url": "https://files.pythonhosted.org/packages/db/0c/c508a60fe55881ff20a0f333a5a0e0b5bfc761f05e508b10f3aa9761a8b3/dj_vga_w1-0.0.22-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "2a4be4e5c4255713224c3930f7aba0fb", "sha256": "86cabaa8a135b82907ce8eef5dc1ffa457eaac8b479fd575c4b3257426d56439" }, "downloads": -1, "filename": "dj-vga-w1-0.0.22.tar.gz", "has_sig": false, "md5_digest": "2a4be4e5c4255713224c3930f7aba0fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 180686, "upload_time": "2014-02-28T13:00:52", "url": "https://files.pythonhosted.org/packages/48/d1/9e26497ef9eb94fac74e38a5dd77041e13bfb4f8a41b9898a694996b3493/dj-vga-w1-0.0.22.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e269c4be534b0eac347cbea7622d8b4f", "sha256": "ca643961582849a3c36f7f69d83600f2409e2521bdf13d9065299f07de0f0f4b" }, "downloads": -1, "filename": "dj_vga_w1-0.0.22-py2.7.egg", "has_sig": false, "md5_digest": "e269c4be534b0eac347cbea7622d8b4f", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 222646, "upload_time": "2014-02-28T13:00:49", "url": "https://files.pythonhosted.org/packages/db/0c/c508a60fe55881ff20a0f333a5a0e0b5bfc761f05e508b10f3aa9761a8b3/dj_vga_w1-0.0.22-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "2a4be4e5c4255713224c3930f7aba0fb", "sha256": "86cabaa8a135b82907ce8eef5dc1ffa457eaac8b479fd575c4b3257426d56439" }, "downloads": -1, "filename": "dj-vga-w1-0.0.22.tar.gz", "has_sig": false, "md5_digest": "2a4be4e5c4255713224c3930f7aba0fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 180686, "upload_time": "2014-02-28T13:00:52", "url": "https://files.pythonhosted.org/packages/48/d1/9e26497ef9eb94fac74e38a5dd77041e13bfb4f8a41b9898a694996b3493/dj-vga-w1-0.0.22.tar.gz" } ] }