Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 97863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:05:10+00:00 2026-05-11T00:05:10+00:00

I like Django, but for a particular application I would like to use only

  • 0

I like Django, but for a particular application I would like to use only parts of it, but I’m not familiar enough with how Django works on the inside, so maybe someone can point me into the right direction as to what I have to check out.

Specifically, I want to use:

  • The models and database abstraction
  • The caching API, although I want to avoid database lookups by caching, not HTML generation, and since the caching framework in Django is intended for the latter, I’m not sure yet whether that’s really appropriate.

I would not use:

  • Templating
  • urlconfigs

Or, more exactly, I’m neither using HTTP nor HTML. So basically, I have a different input / output chain than usual.

Can this work?

My personal killer feature in Django is the Object / database mapping that I can do with the models, so if there’s another technology (doesn’t have to be Python, I’m in the design phase and I’m pretty agnostic about languages and platforms) that gives me the same abilities, that would be great, too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:05:11+00:00Added an answer on May 11, 2026 at 12:05 am

    I myself use Django for its object/db mapping without using its urlconfigs. Simply create a file called djangosettings.py and insert the necessary configuration, for example:

    DATABASE_ENGINE   = 'oracle' DATABASE_HOST     = 'localhost' DATABASE_NAME     = 'ORCL' DATABASE_USER     = 'scott'  DATABASE_PASSWORD = 'tiger' 

    Then in your regular Python code, do

    import os os.environ['DJANGO_SETTINGS_MODULE'] = 'djangosettings' 

    before you import any Django modules. This will let you use Django’s object/db mappings without actually having a Django project, so you can use it for standalone scripts or other web applications or whatever you want.

    As for caching, if you don’t want to use Django then you should probably decide what you are using and go from there. I recommend using CherryPy, which doesn’t use Django-style regular expression URL mapping, but instead automatically maps URLs to functions based on the function names. There’s an example right at the top of the CherryPy home page: http://cherrypy.org/

    CherryPy has its own caching system, so you can accomplish exactly the same thing as what Django does but without needing to use Django’s urlconfig system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to use the logout function from Django but not sure how
I would like to add a field to the Django FlatPage database model, but
I would like to know how do managers work in Django. Let's use the
Tornado is a webserver + framework like Django but for real-time features. On my
I know this isn't exactly Django templating philosophy, but i'd like to be able
It looks like Django does not update last_login field in auth_user model when a
I'd like to use django list_filter to filter by some enum value. Due to
Filtering QuerySets in Django work like the following: Entry.objects.filter(year=2006) How can I use filter
I like to use a GUI application to design databases using ERD. Currently I
I'm writing a django application with a URL like 'http://localhost/entity/id/?overlay=other_id'. Where id is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.