|
|
stackoverflow.com
- 2012-04-20 04:42:22
- Similar
- Report/Block
Everything was going well until suddenly my navigation bar links weren't working. If I mouse over the navbar, it does display the proper url, and I can even type that url in the address bar and it works. But when I click on the navigation bar link such as My Logged In Name, Profiles, Notices - nothing happens. Actually it's not exactly tr...
|
|
|
stackoverflow.com
- 2012-06-03 11:55:16
- Similar
- Report/Block
I am currently trying to develop a rather simple application using django, but I am stuck pretty much at the beginning: My project is named "kundencenter", my app is "customermgr". Both, the project and the app have a urls.py , the project's urls.py includes the app's: from django.conf.urls import patterns, include, url # Uncomment the n...
|
|
|
stackoverflow.com
- 2012-07-10 23:41:57
- Similar
- Report/Block
I know many people have asked, this question, but despite hardcoding the path to my template directory I can't seem to get Django to find my template. Here is settings.py TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Load er', 'django.template.loaders.app_directories .Loader', #django.template.loaders.eggs.Loader', TEMPLATE_DIRS...
|
|
|
|
stackoverflow.com
- 2012-03-07 04:07:18
- Similar
- Report/Block
Suppose I have a Django project that looks like this: - project - urls.py - items - urls.py - views.py The root URLconf looks like this: urlpatterns = patterns('', url(r'^items/', include('items.urls')), The URLconf for items looks like this: urlpatterns = patterns('items.views', url(r'^(?P<item_id>\d+)/$',...
|
|
|
getk2.org
- 2013-03-07 03:35:30
- Similar
- Report/Block
Thank you all in advance for help with this. I am having trouble removing the link code on images in my carousel. Essentially I just want the images to display, and not have them be "clickable" by guests. I see the code in firebug, but can you guys tell me what files i have to edit and the code to remove in each? www.templatemonster.com/d...
|
|
|
stackoverflow.com
- 2013-02-19 15:47:00
- Similar
- Report/Block
I am trying to implement the concept of "Plans" (free, pro, enterprise, etc.) when a user signs up for my site. I am beginning Python Django . I've gotten django-userena installed and working. Now, I am trying to extend the behavior to allow a user to select a "Plan" when signing up for the site. I believe the plan would be stored in a s...
|
|
|
webfaction.com
- 2013-02-26 21:16:30
- Similar
- Report/Block
Today, the latest version of Django has been released. And we’re happy to make it available to you with the new Django 1.5 one-click installer: Django 1.5 brings with it several major improvements, including: A customizable user model . Now you can use you own model to store information about your users. Use it to ditch that 30-character...
|
|
|
|
stackoverflow.com
- 2011-11-28 22:55:48
- Similar
- Report/Block
I want to use AngularJS with Django however they both use {{ }} as their template tags. Is there an easy way to change one of the two to use some other custom templating tag?...
|
|
|
stackoverflow.com
- 2011-10-23 14:56:11
- Similar
- Report/Block
I'm a django newbie. I just installed v 1.3.1 on windows vista (using setup.py install) for python 2.5 When I start a python shell and try to import django.db I get the following circular import error >>> import os >>> os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' >>> import django.db Traceback (most recent...
|
|
|
stackoverflow.com
- 2013-02-08 08:31:45
- Similar
- Report/Block
How to make base template use static files and to make other templates that inherits base template to use same static files? As I read in django documentation it writes about how to use static files that are used for specific app. But I can't seem to find a way to make it use static files from outside app. Given app inherits everything, b...
|
|
|
freelancer.com
- 2012-07-15 04:36:13
- Similar
- Report/Block
I need someone who knows how to rewrite URLs for a wordpress site. The task - I need HTACCESS created that will rewrite URLs on my site, I have a lot of dynamic images on my site, if someone clicks... (Budget: $30-$250 USD, Jobs: Website Design)...
|
|
|
stackoverflow.com
- 2012-03-26 19:46:55
- Similar
- Report/Block
I would like to run JSHint on all my Javascript source files but several of them have some embedded Django template markup. JSHint throws a ton of errors on this markup. Is there a way to either... Tell JSHint to ignore this markup Run the Djnago template parser with some dummy data to generate all permutations of the rendered js file and...
|
|
|
|
stackoverflow.com
- 2012-04-23 23:15:46
- Similar
- Report/Block
Im have a Django application and Im adding Django log Object to it, Im following this documentation https://code.osuosl.org/projects/django- object-log/wiki/Usage#Registering-Action -Types I'm in the part of (Caching Data Automatically) in the documentation which is an example of how to add build cashe and register: def build_cache(user, ob...
|
|
|
stackoverflow.com
- 2012-04-09 20:03:02
- Similar
- Report/Block
I'm currently working on a project that uses django-registration and Django CMS. When display the pages that implement django-registration my page titles do not render. Currently have <title>{% page_attribute page_title %}</title> in base.html which all my templates inherit from. In the pages that do not use django-registrati...
|
|
|
stackoverflow.com
- 2012-05-11 21:41:09
- Similar
- Report/Block
I'm new to Django and python in general, so please bear with me. I want to create a very simple SaaS app to get started with Django and python. My design dictates that all domains will run on the same codebase. The only thing that will differ between each website is the database connection details. (IE each domain receives its own databas...
|
|
|
stackoverflow.com
- 2012-07-05 11:39:08
- Similar
- Report/Block
I'm currently trying to override the default form used in Django 1.4 when logging in to the admin site (my site uses an additional 'token' field required for users who opt in to Two Factor Authentication, and is mandatory for site staff). Django's default form does not support what I need. Currently, I've got a file in my templates/ dire...
|
|
|
stackoverflow.com
- 2012-04-20 11:10:40
- Similar
- Report/Block
Is it possible to run some php app (e.g. wordpress) together with django within one heroku instance, so that the part of app's urls would be served by php and the rest by django?...
|
|
|
stackoverflow.com
- 2013-04-10 06:55:36
- Similar
- Report/Block
I have a (CBV) superclasses (inheriting from Django's View and a mixin) and multiple subclasses for that. I need to have the exact same functionality implemented in all the subclasses, but the actual parent class is going to be completely different except for the fact that will inherit also from Django's View So in effect I need to have...
|
|
|
|
stackoverflow.com
- 2012-04-04 08:24:18
- Similar
- Report/Block
so django-model-utils is awesome. I'm on django 1.3 and attempting to use the Inheritance Manager. What I want to accomplish is: - a queryset to capture all subclasses - pass this queryset to template - iterate through this queryset but treat each obj differently depending on the specific subclass taking the example from the docs if i do...
|
|
|
tekstovi-pesama.com
- 2013-04-26 12:04:46
- Similar
- Report/Block
Django!Django, have you always been alone?Django!Django, have you never loved again?Love will live on, oh oh oh...Life must go on, oh oh oh...For you cannot spend your life regreatting.Django!Django,... Detaljnije pogledajte na sajtu...
|
|
|
stackoverflow.com
- 2013-03-15 07:18:18
- Similar
- Report/Block
Hi Everyone i tried to convert this jquery template into an underscorejs template but doesnt make sense why its not working. can anyone explain why? TIA el: $('#contents'), template: _.template( MenuTemplate ), //template: $('#item-tmpl').template(), render: function () this.$el.empty(); //$.tmpl(this.template, this.model.toArray())...
|
|
|
|
stackoverflow.com
- 2012-05-14 02:48:30
- Similar
- Report/Block
Why am I getting a NameError: global name 'send_mail' is not defined From my models.py: from django.template import Context, loader from django.utils.translation import ugettext as _ from django.core.mail import send_mail ....... class Payment(models.Model): # send email for payment # 1. render context to email template email_template...
|
|
|
babooforum.com.br
- 2013-04-27 02:12:05
- Similar
- Report/Block
Amigos, meu chefe me pediu para fazer um site com um template comprado. Minha experiência é apenas de fazer blogs. Sem um curso apropriado, é possível fazer um site com um template pronto, apenas com a ajuda da web? Obrigado desde já.
|
|
|
stackoverflow.com
- 2012-03-10 18:37:03
- Similar
- Report/Block
I used a pre-built example templates for Django registration and I noticed that for those pages, Django understands and I do things like user.is_authenticated user.username I tried looking at the views.py code in both Django registration and the django.contrib.auth.views , but I couldn't figure out how those two always sent the informa...
|
|
|
|
stackoverflow.com
- 2012-03-14 10:06:43
- Similar
- Report/Block
I'm trying to display table rows with alternating colors. For that, I have two css classes row1 and row2 that I'd like to assign in an alternating pattern to the rows of a table. Ideally, I'd determine if the row is odd or even based on the forloop.counter variable This is what I'd like the template to do (invalid code, but I think it's s...
|
|
|
stackoverflow.com
- 2010-07-25 00:14:38
- Similar
- Report/Block
I'm trying to create a filtered FAQ page in Django. It filters by three categories, and defaults to 'all' for all three when someone hits the root URL. From urls.py: keywords = ('key1','key2','key3') searchurl = r'^category1/(?P<%s>\w{1,50})/cate gory2/(?P<%s>\w{1,50})/category3/( ?P<%s>\w{1,50})/$' % keywords searchall =...
|
|
|
stackoverflow.com
- 2012-04-04 21:35:20
- Similar
- Report/Block
In my Django template I need to return the index of an item in a list.(index method in python) What is a way I could do this. Do I need to use a custom filter? Thank you.
|
|
|
|
stackoverflow.com
- 2013-03-26 15:56:32
- Similar
- Report/Block
I am developing a Django site and after a series of edits I ran my server again when suddenly - no css! The server still displays the html site, of course, but the css all across the site is throwing a 404 error. My static files information in my settings.py wasn't edited at all: STATIC_URL = '/static/' # Additional locations of static f...
|
|
|
stackoverflow.com
- 2012-03-13 19:44:30
- Similar
- Report/Block
I have datetime information stored in the database as UTC. I'm displaying this info using Django admin. Is there a way to display datetime information to the end-user's current timezone in Django admin? Usually I think the logic for this would be in the template/view layer, however, Django-admin hides this all away from you and it seems l...
|
|
|
stackoverflow.com
- 2012-06-02 14:16:18
- Similar
- Report/Block
I have tried just about every django + nginx tutorial on the web and I cannot get an image file to display on the screen. It's always the old story - 404 PAGE NOT FOUND . The web page loads fine but django.png in my /static/ folder does not. Not sure if it's a problem in settings.py or with nginx. I am so frustrated with it that I refuse...
|
|
|
|
stackoverflow.com
- 2012-06-07 23:54:43
- Similar
- Report/Block
The docs for django-pagination are out of date for 1.4. When following them, I don't receive errors but the pagination doesn't work. The pagination page counter loads, but there is no pagination. Here is what I have: settings.py here: TEMPLATE_CONTEXT_PROCESSORS = ( "django.contrib.auth.context_processors. auth", "django.core.context_proce...
|
|
|
stackoverflow.com
- 2013-05-01 00:14:00
- Similar
- Report/Block
I'm currently working on a model in Django involving one model that can have a variety of different traits depending on what kind of object it is. So, let's say we have a model called Mammal, which can either be an Elephant or a Dolphin (with their own traits "tusk_length" and "flipper_length" respectively). Basic OOP principles shout "po...
|
|
|
vbadvanced.com
- 2013-02-25 04:16:48
- Similar
- Report/Block
Hello! I posted a question on vbulletin.org about my problem, and the problem is simple: The template "adv_portal_navigationbits" does not exist in the vBa templates area. I have already tried reinstalling vBa, and have done a global template search, and neither have produced the "adv_portal_navigationbits" template. I was told by vbullet...
|
|
|
|
stackoverflow.com
- 2012-08-04 21:03:54
- Similar
- Report/Block
I have a Django application, which requires several JavaScript files. In Chrome I get the error "Resource interpreted as Script, but transferred with MIME type text/html". AFAIK (see ) in order to fix this problem, I need to configure Django so that JavaScript files are returned with content-type "application/x-javascript". How can I do t...
|
|
|
stackoverflow.com
- 2012-04-23 14:09:48
- Similar
- Report/Block
i installed the easy-maps package via easy_install In the settings.py file I added: 'easy_maps', and then i got the google key and I added the key in: EASY_MAPS_GOOGLE_KEY = In my template I added: {% load easy_maps_tags %} {% easy_map "Russia, Ekaterinburg, Mira 32" 300 400 using "easy_maps/map.html" %} When I load the page nothing app...
|
|
|
stackoverflow.com
- 2012-06-21 01:15:12
- Similar
- Report/Block
I have a weird situation. A client of mine has a website having this kind of URL: OLD URL: website.com/products/the+product_1.php Now the new website that we developed has joomla 2.5 and has all content in there... So we have enabled Joomla SEF there. Now the issue is how to map the OLD urls to new Urls. And the new Joomla 2.5 URL Looks...
|
|
|
|
stackoverflow.com
- 2012-04-03 02:39:11
- Similar
- Report/Block
I am working on a sharepoint website which is built upon a Site Definition in visual studio. All i would like to do is simply add 2 aspx pages to this Site Definition. Kindly reply how can i accomplish this. Do i add new aspx files under Site Template folder or add a new Feature perhaps? so that when i deploy my solution (.wsp) the two as...
|
|
|
stackoverflow.com
- 2012-04-08 04:50:45
- Similar
- Report/Block
I think my apache2 server is close to being set up but it's still returning a 500 error. Here is my .wsgi file: import os, sys #path to directory of the .wsgi file ('apache/') wsgi_dir = os.path.abspath(os.path.dirname(__file__ )) #path to project root directory (parent of 'apache/') project_dir = os.path.dirname(wsgi_dir) sys.path.append...
|
|
|
stackoverflow.com
- 2012-06-24 18:35:55
- Similar
- Report/Block
i have a pycharm project and, presumably, a django project. Perhaps they are one and the same, perhaps not - i'm unsure as to the distinction. Anyway, in my settings.py folder (which is in the base of the project directory, which is what i presume is my pycharm project) i have: ROOT_URLCONF = 'dumpstown.urls' does that mean dumpstown is...
|
|
|
|
stackoverflow.com
- 2012-03-08 08:30:12
- Similar
- Report/Block
I have to create web application similar to twitter with a few tweaks using django. I am clueless if I have to use a CMS for this or any other existing django-application. Working from ground up is quite tedious to be honest. Can anyone recommend me which CMS( or anything else) I should attempt trying?...
|