Re: Chat application application

2018-04-23 Thread Vineet Kothari
start reading channels On Tuesday, April 24, 2018, sathish ponaganti wrote: > Hi All, > > I want to create chat application , using Django frame work. I quite new > to this. > what is the workflow for this. > > > My requirement is :if i entered the text via chat

Chat application application

2018-04-23 Thread sathish ponaganti
Hi All, I want to create chat application , using Django frame work. I quite new to this. what is the workflow for this. My requirement is :if i entered the text via chat window , it should display of the class type object and address of the object. if any one have the code could you

Python Sqlalchemy filter by date range

2018-04-23 Thread sum abiut
I have two date picker fields that i want the users to select from date to end date. and i want to display data between the two dates that was selected. From example form date: 2/14/2018 to date:3/15/2018. when the function is called i want to extract and display data between this two dates. i

Re: How do I move my development data tables to production server?

2018-04-23 Thread Mike Dewhirst
On 24/04/2018 8:57 AM, Anthony Flury wrote: You can use manage.py dumpdata and manage.py loaddata And you can do this per app - or even per table. Thank you Anthony I had totally forgotten that. In fact I actually script dumpdata for dumping test data (ie fixtures) but loaddata never worked

Re: How do I move my development data tables to production server?

2018-04-23 Thread Mike Dewhirst
On 24/04/2018 5:50 AM, Tom Tanner wrote: Hey all, I have a bunch of tables on my local Django project. I set up the project on my production server and ran `manage.py migrate`. That set up the tables, but now I want to move the rows from my local tables to the ones on the production server.

Re: Advice needed: One big model or many apps with highly interlinked data tables?

2018-04-23 Thread Mikkel Kromann
Thank you to all three of you. This was exactly the advice I've been looking for, and increased my understanding of Django as well as of my own app. I will go carefully through the relations between my different models, and split them up between several model files, and cross-import as needed.

How do I move my development data tables to production server?

2018-04-23 Thread Tom Tanner
Hey all, I have a bunch of tables on my local Django project. I set up the project on my production server and ran `manage.py migrate`. That set up the tables, but now I want to move the rows from my local tables to the ones on the production server. Both local and production server use

Trying to understand two messages from `manage.py check --deploy`

2018-04-23 Thread Tom Tanner
I get these two messages after running `python manage.py check --deploy` ?: (security.W001) You do not have 'django.middleware.security.SecurityMiddleware' in your MIDDLEWARE_CLASSES so the SECURE_HSTS_SECONDS, SECURE_CONTENT_TYPE_NOSNIFF, SECURE_BROWSER_XSS_FILTER, and SECURE_SSL_REDIRECT

Re: Updating reCaptcha (widget) in django-based OSQA

2018-04-23 Thread DougN
Hi Melvyn - Same. Could you include the URL to the repository of the captcha > implementation you're using? I've looked at 2 now and neither of them have > the > code you posted. > I did a little write up with a .zip file of the code at the end here:

Re: if statement for development/production mode in templates?

2018-04-23 Thread Alexander Joseph
I found the answer here. https://stackoverflow.com/questions/1271631/how-to-check-the-template-debug-flag-in-a-django-template Thanks On Monday, April 23, 2018 at 8:04:02 AM UTC-6, larry@gmail.com wrote: > > Somewhere in the code is a place where data is passed to the template. > Did you

Re: if statement for development/production mode in templates?

2018-04-23 Thread Larry Martell
Somewhere in the code is a place where data is passed to the template. Did you write the app? On Mon, Apr 23, 2018 at 9:55 AM, Alexander Joseph wrote: > I dont know what that means > > On Monday, April 23, 2018 at 7:49:25 AM UTC-6, larry@gmail.com wrote: >> >>

Re: if statement for development/production mode in templates?

2018-04-23 Thread Julio Biason
You could, on your views, get the DEBUG setting (using django.conf) and pass it to the templates, as you do with all other variable. From: django-users@googlegroups.com on behalf of Alexander Joseph

Re: if statement for development/production mode in templates?

2018-04-23 Thread Alexander Joseph
I dont know what that means On Monday, April 23, 2018 at 7:49:25 AM UTC-6, larry@gmail.com wrote: > > On Mon, Apr 23, 2018 at 9:34 AM, Alexander Joseph > wrote: > > Hello, is there a way to make an if statement that is based on whether > you > > are running in

Re: if statement for development/production mode in templates?

2018-04-23 Thread Larry Martell
On Mon, Apr 23, 2018 at 9:34 AM, Alexander Joseph wrote: > Hello, is there a way to make an if statement that is based on whether you > are running in development mode or production mode? Or based on which > settings file you are using? > > My app allows users to

if statement for development/production mode in templates?

2018-04-23 Thread Alexander Joseph
Hello, is there a way to make an if statement that is based on whether you are running in development mode or production mode? Or based on which settings file you are using? My app allows users to login with their office365 account instead of with django allauth and I'd like to only give them

RE: Cannot find template files for 1.11

2018-04-23 Thread Matthew Pava
Actually, I just use this construct: 'DIRS': [ # insert your TEMPLATE_DIRS here os.path.join(BASE_DIR, 'project_name', 'templates'), ], From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of John Wilkinson Sent: Monday, April 23, 2018 7:47 AM To: Django

RE: Cannot find template files for 1.11

2018-04-23 Thread Matthew Pava
DIRS does not have the path that you indicated it has. Try changing it. DIRS = ['designer/template/designer/'] From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of John Wilkinson Sent: Monday, April 23, 2018 7:47 AM To: Django users Subject: Cannot find

Cannot find template files for 1.11

2018-04-23 Thread John Wilkinson
I am having trouble setting up django to find my template file I have created. The settings.py has, among other sections, the following: INSTALLED_APPS = [ 'designer.apps.DesignerConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes',

RE: django.db.migrations.exceptions.NodeNotFoundError while upgrading django

2018-04-23 Thread Matthew Pava
Did you try running makemigrations first? ./manage.py makemigrations From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Akhi Sent: Monday, April 23, 2018 1:38 AM To: Django users Subject: django.db.migrations.exceptions.NodeNotFoundError while upgrading

Re: ImageSlider in Django

2018-04-23 Thread deviya sweety
yes I did.. here is the error: Traceback (most recent call last): File "C:\Users\hp\ENV\lib\site-packages\django\core\handlers\exception.py", line 41, in inner response = get_response(request) File "C:\Users\hp\ENV\lib\site-packages\django\core\handlers\base.py", line 217, in _get_response

Re: I know this question has been asked before, but I haven't found an answer that solves my situation. I'm looking at the Django tutorial, and I've set up the first URLs exactly as the tutorial has i

2018-04-23 Thread Emma Amechu
Hi Vikram, Am also a few days new into Django but if you are using Python 3, then I suggest you try without the regular expressions. Update your URLs to the below and try loading your sites. polls/urls.py from django.conf.urls import url from . import views urlpatterns = [ url('',

Re: Updating reCaptcha (widget) in django-based OSQA

2018-04-23 Thread Jani Tiainen
Hi, I've been using following implementation: https://github.com/praekelt/django-recaptcha Which has similar code. Currently I'm actually using invisible ReCaptcha which works just fine with field. On Sat, Apr 21, 2018 at 9:52 PM, Melvyn Sopacua wrote: > On vrijdag

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-23 Thread Adrien Cossa
Hi, On 04/23/2018 10:59 AM, guettli wrote: I have a vague idea to use OOP for a hyperlink. A hyperlink has these attributes for me: - href - verbose name - Permission: Is the current user allowed to follow the link? - Preview (on-mouse-over tooltip) We have developed something similar in

Crazy Idea: OOP for "Hyperlink"

2018-04-23 Thread guettli
I have a vague idea to use OOP for a hyperlink. A hyperlink has these attributes for me: - href - verbose name - Permission: Is the current user allowed to follow the link? - Preview (on-mouse-over tooltip) I like Django because it handles the "href" part very smart (via reverse()). My current

django.db.migrations.exceptions.NodeNotFoundError while upgrading django

2018-04-23 Thread Akhi
I am upgrading my django project from django1.5 to django1.11.10. while upgrading when I run ./manange.py migrate I am getting django.db.migrations.exceptions.NodeNotFoundError django.db.migrations.exceptions.NodeNotFoundError: Migration account.0004_auto_20180419_1309 dependencies reference