ImportError at/ No module name
Hi, I have just started practicing a tutorial for buidling a basic blog ( http://www.djangorocks.com/tutorials/how-to-create-a-basic-blog-in-django/starting-your-application.html ) Did exactly the same (except, using 'djangopractice' as project name instead of 'djangorocks') Actually It also did run twice, but than started showing ImportError. My files: ***settings.py*** # Django settings for djangopractice project. #import os, django #DJANGO_ROOT = os.path.dirname(os.path.realpath(django.__file__)) #SITE_ROOT = os.path.dirname(os.path.realpath('__file__')) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_em...@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'djangopractice', # Or path to database file if using sqlite3. 'USER': 'root', # Not used with sqlite3. 'PASSWORD': '1290', # Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. 'PORT': '', # Set to empty string for default. Not used with sqlite3. } } # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. # In a Windows environment this must be set to your system time zone. TIME_ZONE = 'Asia/Karachi' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us' SITE_ID = 1 # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True # If you set this to False, Django will not format dates, numbers and # calendars according to the current locale. USE_L10N = True # If you set this to False, Django will not use timezone-aware datetimes. USE_TZ = True # Absolute filesystem path to the directory that will hold user-uploaded files. # Example: "/home/media/media.lawrence.com/media/" MEDIA_ROOT = '' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash. # Examples: "http://media.lawrence.com/media/";, "http://example.com/media/"; MEDIA_URL = '' # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files # in apps' "static/" subdirectories and in STATICFILES_DIRS. # Example: "/home/media/media.lawrence.com/static/" STATIC_ROOT = '' # URL prefix for static files. # Example: "http://media.lawrence.com/static/"; STATIC_URL = '/static/' # Additional locations of static files STATICFILES_DIRS = ( # Put strings here, like "/home/html/static" or "C:/www/django/static". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. ) # List of finder classes that know how to find static files in # various locations. STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', #'django.contrib.staticfiles.finders.DefaultStorageFinder', ) # Make this unique, and don't share it with anybody. SECRET_KEY = '@io!2+0*rw1o0tjq%t5zb8e$v(wf3p#yk_8#lb^%hrerzijwt1' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', # 'django.template.loaders.eggs.Loader', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', # Uncomment the next line for simple clickjacking protection: # 'django.middleware.clickjacking.XFrameOptionsMiddleware', ) ROOT_URLCONF = 'djangopractice.urls' # Python dotted path to the WSGI application used by Django's runserver. WSGI_APPLICATION = 'djangopractice.wsgi.application' TEMPLATE_DIRS = ( "/home/username/djangosites/djangopractice/Templates" # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.admindocs', 'blog', ) # A sample logging configuration. The only tangible logging # per
Re: Django community, is it active?
Great question, and welcome to the group. I found quite few helpful posts here. and as per stats there are around 1k+ new posts every month. Me too, looking forward to some good blogs. -http://lincolnloop.com/blog/categories/django/ (Technical articles) -http://jacobian.org/writing/ (General to Technical) And for your " Does it have a real future and please be honest." some latest stats : http://jacobian.org/writing/django-community/django-community-2012/ On Wednesday, December 19, 2012 2:36:42 AM UTC+5, Glyn Jackson wrote: > > I'm hoping this is the right place to ask such questions, please forgive > me if not. > > I'm making a real time investment in learning another server side > language. I have 10 years ColdFusion, 5 years PHP, JAVA. Having never > touched Python let alone the framework Django, for the past 4 weeks I have > been testing Django out. Darn, Raspberry Pi started me with my blog ( > http://www.glynjackson.org/blog/) I have to say its nice, however my > concerns are now to do with the community and not so much with the > framework itself. > > No one likes to back a loser and every time I search for Django community > I'm faced with a host of negative posts. for example: > http://news.ycombinator.com/item?id=2777883 > > Unlike other languages I'm active in and still use, I'm also finding it > hard to find any user groups locally in the UK (I'm based in Manchester, > UK). > > So from the community itself how alive is Django? Should I really invest > the time to learn? Does it have a real future and please be honest. > > other questions > > 1) is this worth going? --- http://2013.djangocon.eu > 2) who are the top blogs people within the Django community who should I > be following, blogs feed etc. > > Sorry for the stupid questions, but and just want a new skillset that I > can use for many years to come. Django is really cool > > > > > > > > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/1EGGQtktJ1UJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: ImportError at/ No module name
Can someone kindly look into this. On Thursday, December 20, 2012 6:27:42 PM UTC+5, djangobie wrote: > > Hi, I have just started practicing a tutorial for buidling a basic blog ( > http://www.djangorocks.com/tutorials/how-to-create-a-basic-blog-in-django/starting-your-application.html > ) > > Did exactly the same (except, using 'djangopractice' as project name > instead of 'djangorocks') > Actually It also did run twice, but than started showing ImportError. > > My files: > > ***settings.py*** > > # Django settings for djangopractice project. > #import os, django > #DJANGO_ROOT = os.path.dirname(os.path.realpath(django.__file__)) > #SITE_ROOT = os.path.dirname(os.path.realpath('__file__')) > > DEBUG = True > TEMPLATE_DEBUG = DEBUG > > ADMINS = ( > # ('Your Name', 'your_em...@example.com'), > ) > > MANAGERS = ADMINS > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', > 'mysql', 'sqlite3' or 'oracle'. > 'NAME': 'djangopractice', # Or path to > database file if using sqlite3. > 'USER': 'root', # Not used with sqlite3. > 'PASSWORD': '1290', # Not used with sqlite3. > 'HOST': '', # Set to empty string for > localhost. Not used with sqlite3. > 'PORT': '', # Set to empty string for > default. Not used with sqlite3. > } > } > > # Local time zone for this installation. Choices can be found here: > # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name > # although not all choices may be available on all operating systems. > # In a Windows environment this must be set to your system time zone. > TIME_ZONE = 'Asia/Karachi' > > # Language code for this installation. All choices can be found here: > # http://www.i18nguy.com/unicode/language-identifiers.html > LANGUAGE_CODE = 'en-us' > > SITE_ID = 1 > > # If you set this to False, Django will make some optimizations so as not > # to load the internationalization machinery. > USE_I18N = True > > # If you set this to False, Django will not format dates, numbers and > # calendars according to the current locale. > USE_L10N = True > > # If you set this to False, Django will not use timezone-aware datetimes. > USE_TZ = True > > # Absolute filesystem path to the directory that will hold user-uploaded > files. > # Example: "/home/media/media.lawrence.com/media/" > MEDIA_ROOT = '' > > # URL that handles the media served from MEDIA_ROOT. Make sure to use a > # trailing slash. > # Examples: "http://media.lawrence.com/media/";, "http://example.com/media/ > " > MEDIA_URL = '' > > # Absolute path to the directory static files should be collected to. > # Don't put anything in this directory yourself; store your static files > # in apps' "static/" subdirectories and in STATICFILES_DIRS. > # Example: "/home/media/media.lawrence.com/static/" > STATIC_ROOT = '' > > # URL prefix for static files. > # Example: "http://media.lawrence.com/static/"; > STATIC_URL = '/static/' > > # Additional locations of static files > STATICFILES_DIRS = ( > # Put strings here, like "/home/html/static" or "C:/www/django/static". > # Always use forward slashes, even on Windows. > # Don't forget to use absolute paths, not relative paths. > ) > > # List of finder classes that know how to find static files in > # various locations. > STATICFILES_FINDERS = ( > 'django.contrib.staticfiles.finders.FileSystemFinder', > 'django.contrib.staticfiles.finders.AppDirectoriesFinder', > #'django.contrib.staticfiles.finders.DefaultStorageFinder', > ) > > # Make this unique, and don't share it with anybody. > SECRET_KEY = '@io!2+0*rw1o0tjq%t5zb8e$v(wf3p#yk_8#lb^%hrerzijwt1' > > # List of callables that know how to import templates from various sources. > TEMPLATE_LOADERS = ( > 'django.template.loaders.filesystem.Loader', > 'django.template.loaders.app_directories.Loader', > # 'django.template.loaders.eggs.Loader', > ) > > MIDDLEWARE_CLASSES = ( > 'django.middleware.common.CommonMiddleware', > 'django.contrib.sessions.midd
Re: ImportError at/ No module name
I appreciate your response, but it cannot be the case, as my app is present in top level dir along with manage.py and project file container i.e. 'djangopratice': *my dir structure is:* -- djangopractice- --djangopractice- - __init__.py - settings.py - urls.py - wsgi.py --blog- - models.py - views.py - admin.py - __init__.py - test.py --Templates- - base.html - index.html - view_category.html - view_posts.html - P.S I tried it before posting the question. Thanks On Thursday, December 20, 2012 7:22:05 PM UTC+5, sandy wrote: > > Make installed apps as : > > INSTALLED_APPS = ( > 'django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.sessions', > 'django.contrib.sites', > 'django.contrib.messages', > 'django.contrib.staticfiles', > 'django.contrib.admin', > 'django.contrib.admindocs', > 'djangopractice.blog', > ) > > Hope this helps. > > -- > Sandeep Kaur > E-Mail: mkaur...@gmail.com > Blog: sandymadaan.wordpress.com > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/IicftNFB6WIJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re:
My recommendations (as you're at the starting point, 'd be easy to adjust), don't place your 'Templates' folder in app folder, but place it one level up i.e. *Basic Project map:* -- myproject/- --myproject/- (project file container) - __init__.py - settings.py - urls.py - wsgi.py --myapp1/- - models.py - views.py - admin.py - __init__.py - test.py --myapp2/- - models.py - views.py - __init__.py - test.py -- manage.py- --Templates/- - myapp1/- (use a seperate folder for every app) - base.html - index.html - view_category.html - view_posts.html - myapp2/ - set your Temp dir: /home/machinename/myproject/Templates/ On Saturday, December 22, 2012 9:46:16 AM UTC+5, vinoth kumar renganathan wrote: > > i am new user to django .and i don't know how to add .html files > (template dirs ) to the apps folders .what are the things want to change > in settings.py > > > the error will be templatedoesnotexist >/polls > /admin.py > /__init__.py > /models.py > /tests.py > /urls.py > /views.py > /template >/polls > /index.html > and this order will be correct or not > > for example this will be codings > > {% if latest_poll_list %} > > {% for poll in latest_poll_list %} > {{ poll.question }} > {% endfor %} > > {% else %} > No polls are available. > {% endif %} > > is it necessary to add htmltag ,header tag and doctype before this html > codings > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/UkJ2u6yhN1QJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re:
as you're practicing the exactly the 'building the first app' tutorial, you've placed your templates wrong. Move your 'Templates' folder one directory UP. On Saturday, December 22, 2012 9:46:16 AM UTC+5, vinoth kumar renganathan wrote: > > i am new user to django .and i don't know how to add .html files > (template dirs ) to the apps folders .what are the things want to change > in settings.py > > > the error will be templatedoesnotexist >/polls > /admin.py > /__init__.py > /models.py > /tests.py > /urls.py > /views.py > /template >/polls > /index.html > and this order will be correct or not > > for example this will be codings > > {% if latest_poll_list %} > > {% for poll in latest_poll_list %} > {{ poll.question }} > {% endfor %} > > {% else %} > No polls are available. > {% endif %} > > is it necessary to add htmltag ,header tag and doctype before this html > codings > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/WyI4E7pjorMJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: ImportError at/ No module name
I appreciate your response. The __init__.py is there in the app folder (yes, I created the app via manage.py). It ran perfectly on initial attempts, but with new code added, I got stuck. My so far conclusion (though, not helping at all) is may be I have set some kind 'circular loop' here, while loading (importing) modules, that's why I have pasted all the code from almost all the files. Thanks On Tuesday, December 25, 2012 11:11:12 AM UTC+5, Ryan Blunden wrote: > > Did this fix the problem for you? > > Did you create the application using `python manage.py startapp blog`? If > so, that would've created the blog > application<https://docs.djangoproject.com/en/1.4/ref/django-admin/#startapp-appname-destination>as > a Python module. The __init__.py is required so Python knows to treat > the directory containing the __int__.py as a > module<http://effbot.org/pyfaq/what-is-init-py-used-for.htm> > . > > You can also run `python manage.py validate` when debugging these sort of > issues instead of running the local server as a faster feedback loop. > > Let us know how you go. > > Cheers, > Ryan > > On Thursday, December 20, 2012 5:27:42 AM UTC-8, djangobie wrote: >> >> Hi, I have just started practicing a tutorial for buidling a basic blog >> ( >> http://www.djangorocks.com/tutorials/how-to-create-a-basic-blog-in-django/starting-your-application.html >> ) >> >> Did exactly the same (except, using 'djangopractice' as project name >> instead of 'djangorocks') >> Actually It also did run twice, but than started showing ImportError. >> >> My files: >> >> ***settings.py*** >> >> # Django settings for djangopractice project. >> #import os, django >> #DJANGO_ROOT = os.path.dirname(os.path.realpath(django.__file__)) >> #SITE_ROOT = os.path.dirname(os.path.realpath('__file__')) >> >> DEBUG = True >> TEMPLATE_DEBUG = DEBUG >> >> ADMINS = ( >> # ('Your Name', 'your_...@example.com'), >> ) >> >> MANAGERS = ADMINS >> >> DATABASES = { >> 'default': { >> 'ENGINE': 'django.db.backends.mysql', # Add >> 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. >> 'NAME': 'djangopractice', # Or path to >> database file if using sqlite3. >> 'USER': 'root', # Not used with sqlite3. >> 'PASSWORD': '1290', # Not used with sqlite3. >> 'HOST': '', # Set to empty string for >> localhost. Not used with sqlite3. >> 'PORT': '', # Set to empty string for >> default. Not used with sqlite3. >> } >> } >> >> # Local time zone for this installation. Choices can be found here: >> # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name >> # although not all choices may be available on all operating systems. >> # In a Windows environment this must be set to your system time zone. >> TIME_ZONE = 'Asia/Karachi' >> >> # Language code for this installation. All choices can be found here: >> # http://www.i18nguy.com/unicode/language-identifiers.html >> LANGUAGE_CODE = 'en-us' >> >> SITE_ID = 1 >> >> # If you set this to False, Django will make some optimizations so as not >> # to load the internationalization machinery. >> USE_I18N = True >> >> # If you set this to False, Django will not format dates, numbers and >> # calendars according to the current locale. >> USE_L10N = True >> >> # If you set this to False, Django will not use timezone-aware datetimes. >> USE_TZ = True >> >> # Absolute filesystem path to the directory that will hold user-uploaded >> files. >> # Example: "/home/media/media.lawrence.com/media/" >> MEDIA_ROOT = '' >> >> # URL that handles the media served from MEDIA_ROOT. Make sure to use a >> # trailing slash. >> # Examples: "http://media.lawrence.com/media/";, " >> http://example.com/media/"; >> MEDIA_URL = '' >> >> # Absolute path to the directory static files should be collected to. >> # Don't put anything in this directory yourself; store your static files >> # in apps' "static/" subdirectories and in STATICFILES_DIRS. >> # Example: "/hom
Minimilisticaly: Deploying Django using Nginx on Ubuntu 12.10
Hi all, I am trying to deploy my Django project using Nginx, tried various tutorials. All of them are filled bunch of dependencies and requirements. Here I am looking forward to a simple (in sure way minimilistic), procedure to do so i.e. deploying my Django project (*mysite1*) and (*mysite2*) with apps (*myapp1*) and (*myapp2*). P.S, I am not looking for some solution stating use of 'virtualenv' or in combination with other servers i.e. 'Apache' or 'Gunicorn' etc. It would be top, if you can explain the settings + config using (*mysite1*) with (*myapp1*). Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/na_ZM3qY5IoJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Minimilisticaly: Deploying Django using Nginx on Ubuntu 12.10
I appreciate your response. I have good idea of 'virtualenv', an indespinsble tool. What I am basically trying to do here is, to have a strong grasp over how Nginx behave, once I'll have it 'll definitely move forward to next step (using it in combination). -I have installed Nginx (configured), and now I want to test my Django project (*mysite1* with *myapp1*) at my localhost root (var/www). Thanks On Thursday, December 27, 2012 10:08:15 PM UTC+5, donarb wrote: > > > > On Wednesday, December 26, 2012 11:26:12 PM UTC-8, djangobie wrote: >> >> Hi all, >> I am trying to deploy my Django project using Nginx, tried various >> tutorials. All of them are filled bunch of dependencies and requirements. >> Here I am looking forward to a simple (in sure way minimilistic), procedure >> to do so i.e. deploying my Django project (*mysite1*) and (*mysite2*) >> with apps (*myapp1*) and (*myapp2*). >> >> P.S, I am not looking for some solution stating use of 'virtualenv' or in >> combination with other servers i.e. 'Apache' or 'Gunicorn' etc. >> It would be top, if you can explain the settings + config using (*mysite1 >> *) with (*myapp1*). >> >> Thanks >> > > > You could try this tutorial https://gist.github.com/3094281. > > But you're going to have to run some sort of extra server, be it Apache, > Gunicorn, or uWSGI. Nginx does not run any apps, that is why it is so fast, > it takes requests and either returns file system objects or routes requests > to other processes. The tutorial above uses Nginx and uWSGI to handle the > Django app. It starts out showing you how to use it with virtualenv, then > shows how to run the app without virtualenv. > > If you're running more than one app on a site, you might want to learn how > to use virtualenv. This can save lots of time and headaches in the future > when you decide you want to upgrade one of your apps to a newer version of > python or some other module. Otherwise, upgrading anything on the system > globally will break all your apps that depend on a specific version of > software. And virtualenv is not that mysterious, all it really does is put > all of your application's dependencies into a directory and modify any > system paths and environment variables to point to that directory. It makes > it easy to test and deploy your application to any server. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/OvEXO2Aoj6oJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: New at programming.
For Django, you just have to set it in your project's settings.py module. You can find it. yourProject-->yourProject -->settings.py open it with any editor (Notepad++), and set it as stated in the tutorial. Thanks On Tuesday, January 8, 2013 12:11:08 AM UTC+5, Bugra Bircan wrote: > > Hi everybody. > > I am new at Django and Pyhton. I just installed them and tried to do > whatever tutorial says me. > > > Actually I am also new at programming too, maybe becasuse of that I stuck > at " https://docs.djangoproject.com/en/1.4/intro/tutorial01/ " (Database > setup)- That means Tutorial01 -Database Setup Part. > > Anyway, I installed pyhton 2.7 and Django 1.4 also I know Pyhton comes > with "SQLite" so I didnt install another DB. > > At the moment I am trying to change my Database settings. But I didnt > understan how will I do that at windows7. > > if someone guide me somehow I will appreciate . > > > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/fW-Iks4Ql54J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: HTML Source on Browser Rendering
Than is the issues, as it 'll display the content (inside it) as it is .. making it preformated. can't guess how you got your code wrapped in it in the first place. Thanks On Tuesday, January 8, 2013 6:29:53 AM UTC+5, Ryoichiro Kamiya wrote: > > Thanks jjmutumi, stauros! > > I am not using "autoescape" tag in my template. Thanks. > > I am just checking the source on the back of HTML source displayed with > Firebug as jmutumi suggested. > It seemed an auto-inserted tag before & after the source. (Please > find the attached. thanks) > > Any ideas how this can be added? > > Ryo > > On Monday, January 7, 2013 5:22:30 AM UTC+9, stauros wrote: >> >> Hello, >> maybe any "autoescape" template tags on the wrong spot? >> >> >> On Sun, Jan 6, 2013 at 9:46 PM, Joseph Mutumi wrote: >> >>> Hello, >>> >>> I think you should also check the 'Content-Type' being received >>> client-side >>> in the HTTP headers. You can use something curl or Firebug. >>> >>> >>> On Sun, Jan 6, 2013 at 1:40 PM, Ryoichiro Kamiya >>> wrote: >>> Hi, I'm testing Django template rendering in development environment, but one of the page shows HTML source (after all Django tag executed) instead of HTML. 1. Content Type The first thing I check is the Content Type but it's correctly set up (and it's in header template and shared with other pages that show contents correctly. When I copied & pasted to another template and it works. 2. Browser I checked it in another browser (i.e. Chrome) but it returned the same result. 3. Reboot runserver also it didn't change the output. Is there anything else I should check? Thanks in advance. Regards, Ryo -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/FyjKgMAxm0YJ. To post to this group, send email to django...@googlegroups.com. To unsubscribe from this group, send email to django-users...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To post to this group, send email to django...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> django-users...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/django-users?hl=en. >>> >> >> >> >> -- >> Stavros >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/6AeXT-D0qVUJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: HTML Source on Browser Rendering
Than is the issues, as it 'll display the content (inside it) as it is .. making it preformated. can't guess how you got your code wrapped in it in the first place. Thanks On Tuesday, January 8, 2013 6:29:53 AM UTC+5, Ryoichiro Kamiya wrote: > > Thanks jjmutumi, stauros! > > I am not using "autoescape" tag in my template. Thanks. > > I am just checking the source on the back of HTML source displayed with > Firebug as jmutumi suggested. > It seemed an auto-inserted tag before & after the source. (Please > find the attached. thanks) > > Any ideas how this can be added? > > Ryo > > On Monday, January 7, 2013 5:22:30 AM UTC+9, stauros wrote: >> >> Hello, >> maybe any "autoescape" template tags on the wrong spot? >> >> >> On Sun, Jan 6, 2013 at 9:46 PM, Joseph Mutumi wrote: >> >>> Hello, >>> >>> I think you should also check the 'Content-Type' being received >>> client-side >>> in the HTTP headers. You can use something curl or Firebug. >>> >>> >>> On Sun, Jan 6, 2013 at 1:40 PM, Ryoichiro Kamiya >>> wrote: >>> Hi, I'm testing Django template rendering in development environment, but one of the page shows HTML source (after all Django tag executed) instead of HTML. 1. Content Type The first thing I check is the Content Type but it's correctly set up (and it's in header template and shared with other pages that show contents correctly. When I copied & pasted to another template and it works. 2. Browser I checked it in another browser (i.e. Chrome) but it returned the same result. 3. Reboot runserver also it didn't change the output. Is there anything else I should check? Thanks in advance. Regards, Ryo -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/FyjKgMAxm0YJ. To post to this group, send email to django...@googlegroups.com. To unsubscribe from this group, send email to django-users...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To post to this group, send email to django...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> django-users...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/django-users?hl=en. >>> >> >> >> >> -- >> Stavros >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Ac5cQ5JHsfcJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.