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 8220929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:43:20+00:00 2026-06-07T13:43:20+00:00

I am trying to run /admin for the project that i am creating.i am

  • 0

I am trying to run /admin for the project that i am creating.i am facing two problems here

1.when i point my browser to 127.0.0.1/admin/ it says page not found but when i point the browser to 127.0.0.1 then i get the list of files in my project file how to rectify this

2.Every time i restart apache there are no pyc file created??

 -rwxrwxrwx 1 root root  546 2012-07-11 15:45 manage.py
  -rwxrwxrwx 1 root root    0 2012-07-12 17:53 __init__.py
  -rwxrwxrwx 1 root root   34 2012-07-12 18:03 test
  -rw-r--r-- 1 root root  114 2012-07-12 18:03 __init__.pyc
   drwxr-xr-x 2 root root 4096 2012-07-12 18:20 tmp
  -rwxrwxrwx 1 root root 4489 2012-07-12 18:20 settings.py
  -rwxrwxrwx 1 root root  585 2012-07-12 18:34 urls.py

I have included django.contrib.admin in installed apps in settings.py file and also this is the urls.py file below

  from django.conf.urls import patterns, include, url

  # Uncomment the next two lines to enable the admin:
  from django.contrib import admin
  admin.autodiscover()

  urlpatterns = patterns('',
      # Examples:
      # url(r'^$', '{{ project_name }}.views.home', name='home'),
      # url(r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')),

      # Uncomment the admin/doc line below to enable admin documentation:
      # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

      # Uncomment the next line to enable the admin:
      url(r'^admin/', include(admin.site.urls))
  )

EDIT

I have not created any module as yet..Should i be creating a module then access admin ??

EDIT1

import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")

# This application object is used by the development server
# as well as any WSGI server configured to use this file.
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

/etc/apache2/httpd.conf

  WSGIScriptAlias / /opt/mysite/wsgi.py
  WSGIPythonPath /opt/mysite

  <Directory /opt/mysite>
  <Files wsgi.py>
  Order deny,allow
  Allow from all
  </Files>
  </Directory>
  • 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. Editorial Team
    Editorial Team
    2026-06-07T13:43:21+00:00Added an answer on June 7, 2026 at 1:43 pm

    It looks to me that your apache is improperly configured.

    Check out these docs:

    https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/

    http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html

    To be sure, you could start Django on its on development server and see if you can access the admin area.


    Try this in your django.wsgi:

    import os,sys
    
    #add your django project in PYTHONPATH
    sys.path.append('/home/django/project/path/')
    
    os.environ['DJANGO_SETTINGS_MODULE']='projectName.settings'
    
    import django.core.handlers.wsgi
    application = django.core.handlers.wsgi.WSGIHandler()
    

    apache_django_wsgi.conf:

    Alias /uploads/ "pathTo/uploads/"
    <Directory "pathTo/uploads/">
        Order allow,deny
        Options Indexes
        Allow from all
        IndexOptions FancyIndexing
    </Directory>
    
    Alias /static/ "pathTo/sitestatic/"
    <Directory  "pathTo/sitestatic/">
        Order allow,deny
        Options Indexes
        Allow from all
        IndexOptions FancyIndexing
    </Directory>
    
    WSGIScriptAlias / "pathTo/apache/django.wsgi"
    <Directory "pathTo/apache/django.wsgi">
        Order deny,allow
        Allow from all
    </Directory>
    

    Then, in your /etc/apache2/httpd.conf (or wherever it is located)

    Include "/pathTo/apache_django_wsgi.conf"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When trying to run an Eclipse Dynamic Web Project under a Tomcat setup using
Im trying to run this code . Basically I want the https://admin:qwerty123@ '$dmp':7777/set_param?'$params command
I am trying to create a system that enables the admin to upload a
I have this .vbs script that I am trying to run on windows 7.
I was trying to run code that required the R packages ‘pkgDepTools’ and ‘Rgraphviz’.
I'm trying to run a vb script using process.start() as another user that have
I am trying run a program from a qmake .pro file which modifies the
Situation: I'm trying run an https store (xcart) under one domain secure.example.com and I
Trying to run the following command in php to run powershell command... the following
Trying to run my program in FreeBSD OS, I have the following results: $

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.