Re: Django TinyMCE external_image_list_url breaking admin urls

2015-11-08 Thread Chris Davies-Barnard
Hi James, Thanks for the reply. So I uncommented the line which now looks like: *mce_attrs={ 'external_image_list_url': reverse('imagelist')},* and after restarting apache I get this. Page not found (404)Request Method:GETRequest URL: http://csmatrix.local/admin/main/page/add/ Using the URL

Re: Django TinyMCE external_image_list_url breaking admin urls

2015-11-08 Thread James Schneider
Do you have an app named 'main'? Is it part of INSTALLED_APPS? And is the Page model properly registered with the admin site? How exactly did you reach that URL? Does the admin work if you just use /admin/? -James On Nov 8, 2015 1:46 AM, "Chris Davies-Barnard" wrote: > Hi James, > > Thanks for

Re: Django TinyMCE external_image_list_url breaking admin urls

2015-11-08 Thread Chris Davies-Barnard
Hi James, Well, I seem to have made it work by removing the reverse command all together. mce_attrs={ 'external_image_list_url': 'http://csmatrix.local/gallery/imagelist/'}, obviously this is not a very elegant solution but its working.I also noted that I could not use tinymce 4 as th

Re: Django TinyMCE external_image_list_url breaking admin urls

2015-11-08 Thread Chris Davies-Barnard
Hi James, Thanks for the response. I have just replied to say its working in one sense. Main is my pages, blog and homepage app and then mediamanager is the app that manages images etc uploaded into the media folder. I can create albums which are inserted using wordpress style shorttags i

Re: duplicated queries

2015-11-08 Thread V1ce
I post here my real models for better comprehension (and have cleaned it this morning with an abstract class) class Rubrique(models.Model): nom = models.CharField(max_length=30) slug = models.SlugField(max_length=100) page = models.CharField(max_length=50, null=True) description

Re: Where does the static files reside

2015-11-08 Thread Gary Roach
On 11/07/2015 04:29 PM, René Fleschenberg wrote: Hi Gary, In your second example: ├── archive │ ├── archive │ │ ├── __init__.py │ │ ├── settings.py │ │ ├── urls.py │ │ └── wsgi.py │ ├── home │ ├── static | | |___home │ │ ├── home.css │ │ ├── image

Re: Where does the static files reside

2015-11-08 Thread Andreas Kuhne
Hi Gary, You can certainly setup a global static files location. All you need to do is add a path to STATICFILES_DIRS in your settings file. However, that is not really necessary. All files that are in a static directory in one app are accessible in other apps. You can create an app that contains

Managing and synchronising users on multiple sites

2015-11-08 Thread Stodge
I have several Django sites and I need to synchronize user accounts across them all. I need the ability to create the same user on all sites at the same time and also to keep their info in sync. The servers are in different locations in DMZs and can't open connections to external servers. So no

finding information on modules, imports, etc.

2015-11-08 Thread Gary Roach
I can't seem to find a "dictionary" of modules? or what ever on the use of: import os or other possible imports from django.contrib import admin possibilities.> Maybe I'm using the wrong terminology but after a gazillion searches, I still haven't found a decent reference. Any help to this

Re: Managing and synchronising users on multiple sites

2015-11-08 Thread Gergely Polonkai
How about an SSO solution hosted at one of the sites? When the user logs in, the site authenticates them against the SSO, and fetches user data. See Stack Exchange sites (Stack Overflow, Server Fault, etc) as an example. On 8 Nov 2015 18:24, "Stodge" wrote: > I have several Django sites and I nee

Re: finding information on modules, imports, etc.

2015-11-08 Thread Gergely Polonkai
It's a bit unclear what you want to do. Could you write a use case? I'm afraid of an XY problem here… On 8 Nov 2015 18:25, "Gary Roach" wrote: > I can't seem to find a "dictionary" of modules? or what ever on the use of: > > import os or other possible imports > > from django.contrib import admi

Re: Best practices for writing functional tests to exercise forms?

2015-11-08 Thread Tim Chase
On 2015-11-06 01:09, Carl Meyer wrote: > I recommend the WebTest package [1], along with django-webtest [2] > to adapt it for use with Django. > > [1] https://pypi.python.org/pypi/WebTest > [2] https://pypi.python.org/pypi/django-webtest Thanks for your suggestions, Carl. I'll check them out as

Django on CentOS

2015-11-08 Thread Robin Fourcade
Hello, I'm trying to run my django project on my CentOS server. I followed this tutorial : http://www.science-emergence.com/LeWebFrameworkDjango/DeployerUneApplicationDjangoSurCentos/#deployer-votre-application-django And at the end, they say that I just have to enter my server IP address and

Re: Django on CentOS

2015-11-08 Thread James Schneider
On Nov 8, 2015 11:25 AM, "Robin Fourcade" wrote: > > Hello, > I'm trying to run my django project on my CentOS server. > > I followed this tutorial : http://www.science-emergence.com/LeWebFrameworkDjango/DeployerUneApplicationDjangoSurCentos/#deployer-votre-application-django > > And at the end, t

Re: Managing and synchronising users on multiple sites

2015-11-08 Thread Stodge
The servers are in DMZs in different cities. I don't control the firewall configuration and I'm not allowed to open extra ports. On Sunday, 8 November 2015 14:18:37 UTC-5, Gergely Polonkai wrote: > How about an SSO solution hosted at one of the sites? When the user logs in, > the site authentic

Re: Django on CentOS

2015-11-08 Thread Robin Fourcade
Hi, Thanks for your answer ! (I'd add that even if apache is running, if I run the server on the port 8000, I can acces the django project on this port without any issue) Here's the log [Sun Nov 08 14:46:41 2015] [error] [client 109.10.154.52] mod_wsgi (pid=22420): Exception occurred processing

Copy table data in moodels in django project

2015-11-08 Thread Bhanu Kathuria
I have crawled some data and stored it in table using phpmyadmin. How can I copy that data in a model in my djangoproject. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Managing and synchronising users on multiple sites

2015-11-08 Thread Gergely Polonkai
I meant web based SSO :) The aforementioned Stack Exchange sites work like this; when you authenticate to one of their sites, you actually authenticate to Stack Exchange, which sets a cookie that is processed by the sites. This can be done by one of the already available web servers (although a sep

Re: Django on CentOS

2015-11-08 Thread Gergely Polonkai
Hello, no, the problem is here: [Sun Nov 08 14:46:43 2015] [error] [client 109.10.154.52] ImportError: Could not import settings 'pizzaclub.settings' (Is it on sys.path?): No module named pizzaclub.settings, referer:http ://212.227.107.82/ It see

Search capability on Django 3.1.3 (Haystack)

2015-11-08 Thread nAncy sharma
Hi there, I am building a website using Django cms 3.1.3 ! I am facing problem in implementing search capability (Haystack elasticsearch) .Could you provide me with someuseful links? And is the Django cms VERSION (3.1.3) also an issue because of which i am not able to implement it ? Thank you

Re: duplicated queries

2015-11-08 Thread James Schneider
The reason that you are seeing multiple hits on the database is due to the way that your template loops are built. The {% with %} statements are calling a method on your model, which is returning a fresh queryset for every iteration of the for loop (which is then compounded by the inner {% with %}