Giter Club home page Giter Club logo

dj4e-samples's Introduction

DJ4E Samples

This is a set of Django projects that provide free sample code to support the www.dj4e.com web site.

You can seem some of the samples at

http://samples.dj4e.com

To set this up, simply check it out into some folder

cd ...wherever...
git clone https://github.com/csev/dj4e-samples.git

There are several subfolders:

  • samples is a Django project that contains a set of simple sample applications that demonstrate a single concept per application

  • dj4ecrud is a Djanog project that contains a complete working CRUD application with autos and makes

These samples may be updated from time to tims so you might want to get updates using git pull. Also if there are bugs, you are welcome to submit a Pull Request on github.

All of the documentation material is copyright CC-BY 3.0 and the code is copyright MIT by whomever wrote the code or documentation. You are welcome to use this in any way you see fit and paste code from this repo into your applications.

Running Locally

If you have Django installed on your local computer you can test any of the sample applications bygoing into the folder and starting the server:

cd dj4e-samples/samples
cd hello
python3 manage.py runserver

And visit http://localhost:8000.

Running on PythonAnywhere

If you are using PythonAnywhere.com to run your Django applications, you can check all the sample code out as follows:

cd ~
git clone https://github.com/csev/dj4e-samples.git

Then under the web tab, update the config files to point to your new application:

Source code:                /home/--your-account--/dj4e-samples/samples
Working Directory:          /home/--your-account--/dj4e-samples/samples

Update the lines in your WGSI configuration file:

...
path = os.path.expanduser('~/dj4e-samples/samples')
...
os.environ['DJANGO_SETTINGS_MODULE'] = 'samples.settings'

Then Reload your application and then visit the site. If the top level folder insists on redirecting to /catalog simply clear your cache.

You can edit these files and settings in the Web tab to easily switch between the various projects in this repository.

dj4e-samples's People

Contributors

csev avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.