Re: Advice: count hits/pageview for high traffic website

2017-03-07 Thread carlos
Daniel, no i say i used django for a website with high traffic maybe 70k per days, but i need count visit page like django-hitocunts but the problems like django-hitcount is not for a website high traffic, the database is very slow ans the website down my question is exist any method, third party

SESSION_ENGINE

2017-03-07 Thread mohamed shawky
any one use session and auth when backend is mongodb any help -- 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

Re: Advice: count hits/pageview for high traffic website

2017-03-07 Thread Daniel Bess
Hi Carlos, You email is a little unclear. Are you suggesting I should not use Django for a web backend? Let me know! Thanks, Daniel > On Mar 7, 2017, at 3:38 PM, carlos wrote: > > Hi, > i try used django-hitcount but really not for website high traffic > any advice

Re: Advice: count hits/pageview for high traffic website

2017-03-07 Thread Shawn Milochik
On Tue, Mar 7, 2017 at 6:38 PM, carlos wrote: > Hi, > i try used django-hitcount but really not for website high traffic > any advice for count visits/hits page for 60k or 100k traffic for day > > thank any idea, link or whatever helps > > My vote would be for something

Advice: count hits/pageview for high traffic website

2017-03-07 Thread carlos
Hi, i try used django-hitcount but really not for website high traffic any advice for count visits/hits page for 60k or 100k traffic for day thank any idea, link or whatever helps -- att. Carlos Rocha -- You received this message because you are subscribed to the Google Groups "Django

Re: Advice: django deploy vps error 502

2017-03-07 Thread Daniel Hepper
Have a look at the Nginx module ngx_http_limit_req_module http://nginx.org/en/docs/http/ngx_http_limit_req_module.html It allows you to limit the number of requests coming from a single address. This will probably be good enough to protect your site against a single person running ab, but it

Re: Channels + steam(gevent based package)

2017-03-07 Thread Andrew Godwin
I'm afraid I can't really help with something this complex, it seems like your problems stem a lot from gevent and process management as well, and that's a very difficult topic. My general advice would be to try splitting things up into more separate processes (django management commands can be

Re: Channels + steam(gevent based package)

2017-03-07 Thread Lada B
Do you have some advice? How should I start it and still be able to send all needed parameters there and use channels send()? When I start new Thread it still throws errors and when I start new Process then its broken and there i some fork error in the end. Dne úterý 7. března 2017 19:45:36

Simple Join with no matching primary keys

2017-03-07 Thread ayshalab
Greetings, I am trying to do a join on the following 2 models (tables) class Rio1(models.Model): datestr = models.DateTimeField() source = models.TextField() dFlag = models.TextField() url = models.TextField() class Meta: managed = False db_table = 'rio1'

Re: Channels + steam(gevent based package)

2017-03-07 Thread Lada B
I call it in signal function after enough of user rows is in DB: @receiver(post_save, sender=chat_session) def on_create_users_online(sender, created, **kwargs): some magic conditions start_bot(kwargs['instance'].match_id, group1, group2,group_name, rad_reward,

Re: Channels + steam(gevent based package)

2017-03-07 Thread Andrew Godwin
So you are starting a steam client from a consumer inside a worker process then? Inside a consumer, send() calls will not finish until you return control from the consumer, so maybe that's it? On Tue, Mar 7, 2017 at 10:39 AM, Lada B wrote: > I call it in signal function

Re: Channels + steam(gevent based package)

2017-03-07 Thread Lada B
I call it in signal function after enough of user rows is in DB: @receiver(post_save, sender=chat_session) def on_create_users_online(sender, created, **kwargs): some magic and conditions start_bot(kwargs['instance'].match_id, group1, group2,group_name, rad_reward,

Re: Channels + steam(gevent based package)

2017-03-07 Thread Andrew Godwin
Where are you running this steam client from? Presumably not a webserver process, as that doesn't have a main thread. Could you explain a bit more about the architecture and what channel layers you have configured? Andrew On Tue, Mar 7, 2017 at 4:06 AM, Lada B wrote: > I'm

Re: Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread Vanja Falck
Sorry for my last message! I only checked the main page which don´t have any page. Forgot to check the /polls/ You are perfectly right - not completing the ^ with return before the next character makes the difference! Thanks! tirsdag 7. mars 2017 18.02.48 UTC+1 skrev Vanja Falck følgende: >

Re: Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread Vanja Falck
Checked the ^ sign, but it was only missing a return - no syntax-error or change in the current 404 error, so I assume it is interpreted right. The error message is only this (deliberately exchanged my actual site with xxx) - with the 404 header: Using the URLconf defined in xxx.urls, Django

Re: Django: how to send email when the publish date is reached for a blog item

2017-03-07 Thread Shawn Milochik
There are multiple ways to do it. For example: Write a Django management command and call it from cron. Use a scheduled Celery task. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Django: how to send email when the publish date is reached for a blog item

2017-03-07 Thread Simha Rupa Das
I have created a blog using Django My blog model contains: Title Description Image Publish_date Date_created Now whenever i reach the publish_date, i want to send email or send some notification to an android app. How to do that. -- You received this message because you

Re: Request for advice on refactoring a big Django project

2017-03-07 Thread bobhaugen
> But don't be dismayed if no one responds. I'm not at all dismayed, and knew it was a shot in the dark, but might as well try for somebody who likes to discuss Django refactoring, or might be interested in the stuff we are building. And thanks again for the responses to my question about why

Re: Need help in posting Multi select option from HTML to MongoDB using Mongoengine

2017-03-07 Thread Carlos Andre
Vinay to this do the simple. The form interprets normally the models. Example: models.py from mongoengine import * class person(Document): name = StringField(max_length = 150) club = EmbeddedModelField(club) class club(Document): name = StringFiend(max_length = 150) form.py class

Re: Upgrade from django 1.4 to django 1.11

2017-03-07 Thread ludovic coues
By upgrading directly from 1.4 to 1.11, deprecation warning might be missed, resulting in a non-working project with few indication of what is wrong. 2017-03-07 13:07 GMT+01:00 Antonis Christofides : > There is no inherent reason for doing it a step at a time; you

Re: Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread ludovic coues
I think I see your problem. Look like you can type a character looking a lot like ^ but being different. ^ is ascii character 94, which represent the start of a line in a regular expression. 2017-03-07 14:10 GMT+01:00 ludovic coues : > Is there any information on the 404 page ?

Re: Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread ludovic coues
Is there any information on the 404 page ? I remember django being quite chatty as long it's in debug mode 2017-03-07 10:56 GMT+01:00 Vanja Falck : > Hi, > I have startet the first part of the djangoproject tutorial and get stuck in > part 1 - getting 404 errors on /polls/

Re: Upgrade from django 1.4 to django 1.11

2017-03-07 Thread Tim Graham
Here's the "official advice": https://docs.djangoproject.com/en/dev/howto/upgrade-version/ On Tuesday, March 7, 2017 at 6:55:22 AM UTC-5, BIJAL MANIAR wrote: > > > Hi, > > Currently we have an application built using django 1.4. > As the latest LTS release is 1.11, we are planning to upgrade it

Re: Upgrade from django 1.4 to django 1.11

2017-03-07 Thread Antonis Christofides
There is no inherent reason for doing it a step at a time; you can go directly to 1.11 (which, btw, hasn't been released yet, it's in alpha I think, so it may or may not be ok for you). Doing it in steps might be better if you intend to read the release notes. So you read the release notes for

Channels + steam(gevent based package)

2017-03-07 Thread Lada B
I'm using https://github.com/ValvePython/steam https://github.com/django/channels and I'm trying to make them work together. Problem is that when SteamClient starts I cannot send any message with channels. Group(group_name).send({ 'text': json.dumps({ 'match_status': "balancing

Need help in posting Multi select option from HTML to MongoDB using Mongoengine

2017-03-07 Thread vinay.marpina
Hi All, I am trying to implement a Multi select input box in my Html page. Once user select multiple check boxes all the data for that specific field need to store in MongoDB as a part of json. I am not able to understand how i can Multi Select input box created in Html can be connected to

Re: Error running Django tutorial

2017-03-07 Thread Vanja Falck
Hi, I am also facing the same problems with the djangoproject tutorial - I have changed the settings.py file to add the polls app, but it did not solve the issue: When runserver: I get the admin page, but not the polls page. Get a similar 404 error page as Kipling, but with the ˆpolls/ url in

Upgrade from django 1.4 to django 1.11

2017-03-07 Thread BIJAL MANIAR
Hi, Currently we have an application built using django 1.4. As the latest LTS release is 1.11, we are planning to upgrade it to 1.11. Which of the below 3 alternatives is a better option for django version upgrade. 1. Should we take it one release at a time? ie, Make the jump from 1.4 to

Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread Vanja Falck
Hi, I have startet the first part of the djangoproject tutorial and get stuck in part 1 - getting 404 errors on /polls/ - the admin page is ok. Any one have an idea about what is wrong? Followed the instructions carefully (django 1.10 - version). Running in virtualenv with python 3.5.2 and

Djangoprojects tutorials part 1 - getting 404 errors on /polls/

2017-03-07 Thread Vanja Falck
Hi, Djangoproject tutorials part 1 - followed carefully (1.10 version) + added the polls app to settings.py (not in the tutorial) - still get 404 error on /polls/ (the /admin/ is working). Running with virtualenv python 3.5.2 and django 10.1.6 on Ubuntu 16.04. Any one who knows what is wrong?

Postgres (sqlmigrate) FK to M2M without RunPython

2017-03-07 Thread Daniel Roseman
Schema migrations don't run on the database server, they run on the app server with the rest of your Django code and communicate with the database in exactly the same way. If you can run Django, you can run migrations. -- DR. -- You received this message because you are subscribed to the

Re: Postgres (sqlmigrate) FK to M2M without RunPython

2017-03-07 Thread Melvyn Sopacua
On Monday 06 March 2017 15:40:55 Maksym Mospanenko wrote: > Hello! I want to migrate data with schema migrations but I can't run > any python code on database server - only raw sql (postgres). > How can I move fk column data to m2m table's fk column? On the server you can run python code: python

Re: Django Channels - Delay server for Group messages

2017-03-07 Thread Andrew Godwin
Not at the moment, the delay server is not built with that in mind. It could be extended to do so if you wanted to look into it. Andrew On Mon, Mar 6, 2017 at 2:09 PM, Adrián Cuesta wrote: > Hi > > Is there any way to send delayed messages to Group instead of a