[Solved?] Re: string theory and web woes

2017-04-05 Thread Mike Dewhirst
On 6/04/2017 2:44 PM, Mike Dewhirst wrote: I'm collecting strings from web page sources and storing extracted data in a TextField. If it is done again, it gets added into the TextField. My code goes something like ... If data not in textfield: insert_data(data, textfield) Got it

string theory and web woes

2017-04-05 Thread Mike Dewhirst
I'm collecting strings from web page sources and storing extracted data in a TextField. If it is done again, it gets added into the TextField. My code goes something like ... If data not in textfield: insert_data(data, textfield) ... but no matter how I wrinkle my brow and try harder and

Re: csrf verification failed when trying to upload profile pic after login...please help

2017-04-05 Thread Kriti Rohilla
Csrf verification is used for cross site request forgery protection. In earlier versions of django csrf_token was needed to be imported in views.py file. In latest releases, however, ( I am using django 1.10), no such thing is required. All you need to do is include {% csrf_token %} in your

Auth using FreeIPA?

2017-04-05 Thread Lachlan Musicman
Hola, Has anyone got tips on integrating a Django 1.11.0/2.0 with FreeIPA? I've found a video from EuroPython 2015 ( https://www.freeipa.org/page/Web_App_Authentication#Django) but that's a long time ago now and videos aren't much chop when it comes to howtos :) cheers L. -- The most

installing django and deploying it in a shared hosting

2017-04-05 Thread harrison wachira
I was unable to deploy django in a shared hosting -- 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 email to django-users+unsubscr...@googlegroups.com. To post to this

csrf verification failed when trying to upload profile pic after login...please help

2017-04-05 Thread greatlegend19
when i try to upload profile pic after login through form..it shows csrf verification failed.. Any answers why this is happening ??? -- 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

Re: python django fields and row calculation

2017-04-05 Thread sum abiut
Thanks heaps this should get me started On Wed, Apr 5, 2017 at 2:42 PM, Lachlan Musicman wrote: > Well, if it's on the user model as a function, then it will happen as soon > as you call it. > > If they can have mulitple applications in process, then you will need to >

Re: "'txredisapi' is not defined" after Update to Django 1.11 with Django Channels

2017-04-05 Thread Jochen Breuer
Thanks Andrew! An outdated asgi_redis package was the issue. I was just checking the package listing in PyCharm, which didn't show me the newer version, so I thought I was on the latest version without checking the CheeseShop. My fault. Sorry! Am Mittwoch, 5. April 2017 16:49:13 UTC+2

Setting up an App and getting an import error

2017-04-05 Thread jjanderson52000
Hi, I'm setting up a Django app using Django 1.10.3 and python 3.5.2. When I run the following command in my 3.5.2 virtual environment: *python manage.py runserver*prior to entering the app in INSTALLED_APPS in settings.py, my webpage comes up fine. When I add the following line to

Re: after upgrade to django 1.11 from 1.10.6 getting an exception on runserver

2017-04-05 Thread Tim Graham
query.add_q() is a private API. I'd suggest to use git bisect to find the Django commit where the behavior changed. That might give you a hint of how to adapt your code. On Wednesday, April 5, 2017 at 11:25:25 AM UTC-4, Mukul Acharya wrote: > > Traceback (most recent call last): >File

Re: Follow the django tutorial but failure

2017-04-05 Thread C. Kirby
When you type in the url it submits a GET, but the form submission (an the error tell this explicitly) uses a POST. Likely you did not handle a POST method in your view. On Wednesday, April 5, 2017 at 6:25:23 PM UTC+3, Chris Chan wrote: > > Hi, > I'm try to follow the Django tutorial and modify

Re: How to get a mentor

2017-04-05 Thread Joe Landrigan
Thanks Mark! I'll take all the free mentoring I can get. ;) I could use both types of mentors, but wasn't expecting an entrepreneurial mentor on a Django site. The idea is actually pretty well thought out, but I doubt most people in this list would care for business plans. I have a local

Re: Follow the django tutorial but failure

2017-04-05 Thread ludovic coues
traceback, not stacktrace, sorry. 2017-04-05 17:30 GMT+02:00 ludovic coues : > The full stacktrace and the code of your view would be helpful, thanks > > 2017-04-05 6:12 GMT+02:00 Chris Chan : >> Hi, >> I'm try to follow the Django tutorial and modify

Re: Follow the django tutorial but failure

2017-04-05 Thread ludovic coues
The full stacktrace and the code of your view would be helpful, thanks 2017-04-05 6:12 GMT+02:00 Chris Chan : > Hi, > I'm try to follow the Django tutorial and modify something but failure. > When I execute the web page is error and the Django server console said " > Method

after upgrade to django 1.11 from 1.10.6 getting an exception on runserver

2017-04-05 Thread Mukul Acharya
Traceback (most recent call last): File "/srv/webapps/myproj.com/virtualenvs/myproj1.11/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 227, in wrapper fn(*args, **kwargs) File

Follow the django tutorial but failure

2017-04-05 Thread Chris Chan
Hi, I'm try to follow the Django tutorial and modify something but failure. When I execute the web page is error and the Django server console said " Method not allowed (Post): /polls/3/results/" But I'm type address : http://127.0.0.1:8000/polls/3/results/ is fine, thanks In "First app, Part

Re: "'txredisapi' is not defined" after Update to Django 1.11 with Django Channels

2017-04-05 Thread Andrew Godwin
Hi, Can you make sure your asgi_redis installation is upgraded all the way too? And which exact version of Channels do you have installed? Andrew On Wed, Apr 5, 2017 at 4:07 PM, Jochen Breuer wrote: > Hi! > > After Updating Django to version 1.11 with a current Channels

"'txredisapi' is not defined" after Update to Django 1.11 with Django Channels

2017-04-05 Thread Jochen Breuer
Hi! After Updating Django to version 1.11 with a current Channels installation based on Redis, `runserver` spams the shell with the following error: ERROR - server - Error trying to receive messages: name 'txredisapi' is not defined My consumers are working despite the error. I'm not sure

Re: why i cant always

2017-04-05 Thread shahab emami
yes i installed it . with this command: python -m pip install django-secretballot I have a question can you install this app on for yours? because I believe if someone else can install this app for his project i can do it too. thanks -- You received this message because you are subscribed

Re: ModelForm has no model class specified.

2017-04-05 Thread Daniel Roseman
On Tuesday, 4 April 2017 21:04:52 UTC+1, Matthew Pava wrote: > > I have a form similar to that declared below: > > > > class LineItemForm(Mixin, forms.ModelForm): > > cost = forms.FloatField() > > field_order = [‘part’, ‘cost’] > > > > class Meta: > > model = LineItem > > fields =

Re: why i cant always

2017-04-05 Thread fabrixxm
have you installed django-secretballot ? -- 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 email to django-users+unsubscr...@googlegroups.com. To post to this group, send

Using Redis as Django Cache

2017-04-05 Thread Luvpreet Singh
I am using(trying) redis as a cache to my django app. This is how I am trying to do it. def postview(request): post_list = [] if cache.get("posts") == None: post_list = Post.objects.all() cache.set("posts", post_list, timeout=None) else :

Re: Django 1.11 released

2017-04-05 Thread Florian Apolloner
Not on purpose no -- if it doesn't work with 4.1 that is a bug On Wednesday, April 5, 2017 at 11:07:13 AM UTC+2, jorr...@gmail.com wrote: > > Is the required version of Pillow pinned at 4.0.0? I upgraded to Django > 1.11 and from Pillow 4.0.0 to 4.1.0 but now Django doesn't start because it >

Re: why i cant always

2017-04-05 Thread ludovic coues
The error message should be longer and contain useful information to find what is wrong. Without these information, I don't know where to look for the error. 2017-04-05 0:00 GMT+02:00 shahab emami : > hello > i could never install an app from github > i get errors all the

Re: Django 1.11 released

2017-04-05 Thread jorrit787
Is the required version of Pillow pinned at 4.0.0? I upgraded to Django 1.11 and from Pillow 4.0.0 to 4.1.0 but now Django doesn't start because it says I can't use ImageField without installing Pillow. Downgrading to Pillow 4.0.0 fixes this. On Tuesday, April 4, 2017 at 6:09:40 PM UTC+2, Tim

Re: Django Channels - Class Based Consumers

2017-04-05 Thread Dan Alderman
That makes sense. I got myself in such a muddle I somehow ended up knowing less about Channels than I did a couple of weeks go. Thanks very much for the help! On Wednesday, 5 April 2017 09:18:58 UTC+1, Andrew Godwin wrote: > > The stream is the name of the stream inside the Multiplexer - it's

Re: Django Channels - Class Based Consumers

2017-04-05 Thread Andrew Godwin
The stream is the name of the stream inside the Multiplexer - it's like a sub-channel inside the WebSocket that is used by either end to distinguish packets from each other (it's why you provide it to the JavaScript binding - it needs to know which stream to listen to) Andrew On Wed, Apr 5, 2017

Re: Django Channels - Class Based Consumers

2017-04-05 Thread Dan Alderman
Hi Andrew, Many thanks for your input - that does indeed help. What was really confusing me was what arguments I actually needed to supply to the JsonWebsocketConsumer.group_send() function. Not fully understanding classmethods, I was trying to pass the cls argument as well. I understand

Re: filter chaining v/s filter with multiple arguments.

2017-04-05 Thread Mahendra Gaur
Thanks everyone. Now I have got a clear idea of how these both statements differ to each other. Thanks and Regards, Mahendra On Tue, Apr 4, 2017 at 5:55 PM, Todor Velichkov wrote: > I didn't use anything special, just print on queryset.query > > qs1 =