Re: How do I exactly change from SQLite to MySQL ?

2018-01-15 Thread Daniel Hepper
Hi Daniel, you can use SQLite locally and MySQL on Heroku. On Heroku, your database settings must be loaded from an environment variable. The section on Database Configuration in Heroku's guide for setting up Django apps ( https://devcenter.heroku.com/articles/django-app-configuration#database

How do I exactly change from SQLite to MySQL ?

2018-01-14 Thread Daniel Cîrstea
Hello. I am new to Django and I am trying to use it for my bachelor thesis. Thing is, I want to use MySQL insted of SQLite. How do I exactly do it.. I can't find a step-by-step tutorial on the internet. Also, I want to deploy project later on Heroku. Can I work on SQLite on local machine and

Re: Using Django create() on a time.field

2018-01-07 Thread Daniel Roseman
On Sunday, 7 January 2018 21:03:05 UTC, Malik Rumi wrote: > > -- > > As a string that evaluates to the past *** > > (lifeandtimes) malikarumi@Tetuoan2:~/Projects/lifeandtimes/chronicle$ > python django_textract_9.py > > Traceback (most recent call last): > > File "django_textract_9.py", line 17,

Re: How to convert Queryset to String?

2018-01-02 Thread Daniel Roseman
On Tuesday, 2 January 2018 09:42:08 UTC, Joshua O. Morales wrote: > > Here's the snippet of my code: > models.py: > > class Comment(models.Model): > comment_title = models.TextField() > comment_content = models.TextField() > def __str__(self): > return self.comment_content > >

Re: 'Question' object has no attribute 'choice_text'

2017-12-24 Thread Daniel Hepper
for the tutorial, step-by-step: https://consideratecode.com/2017/12/15/django-tutorial-step-by-step/ Hope that helps, Daniel > Am 24.12.2017 um 17:44 schrieb Artem Tantsura <duality...@gmail.com>: > > I've made anything by site tutorial, just repeat all steps and code. And

Re: Constant Invalid HTTP_HOST header spam

2017-12-19 Thread Daniel Hepper
could configure logging in the default server block. Hope that helps, Daniel On Tuesday, December 19, 2017 at 1:18:36 PM UTC+1, Jon Ribbens wrote: > > On Tuesday, 19 December 2017 07:24:23 UTC, Antonis Christofides wrote: >> >> I may be wrong of course, but I don't recall SNI havi

having trouble with django models

2017-12-16 Thread Daniel Roseman
This is expected behaviour. You've set them to be populated automatically on create and update. So there's no need to be modifiable via the admin. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Please explain "TypeError: handle_404() got an unexpected keyword argument 'exception'"

2017-12-12 Thread Daniel Roseman
On Tuesday, 12 December 2017 17:27:03 UTC, Chris Seberino wrote: > > >>> >>> Please explain "TypeError: handle_404() got an unexpected keyword >>> argument 'exception'" >>> >> >> It means literally that "handle_404() got an unexpected keyword argument >> 'exception'", how are you calling

How to make a subscription form for use with Stripe / dj-stripe?

2017-12-04 Thread Daniel Grace
I have set up a Stripe account and installed dj-stripe, but I can't find information on how to set up a subscription form. I understand that dj-stripe looks for a template in the djstripe directory, but I don't know what should be in the template. -- You received this message because you are

Re: AutocompleteSelect and AutocompleteSelectMultiple admin widgets.

2017-11-28 Thread Daniel Gola
onday, November 27, 2017 at 3:27:30 AM UTC-5, Daniel Gola wrote: >> >> Hello, >> >> Where I can find more detailed information about AutocompleteSelect and >> AutocompleteSelectMultiple admin widgets? >> >> I have not been able to find any information

Re: AutocompleteSelect and AutocompleteSelectMultiple admin widgets.

2017-11-28 Thread Daniel Gola
onday, November 27, 2017 at 3:27:30 AM UTC-5, Daniel Gola wrote: >> >> Hello, >> >> Where I can find more detailed information about AutocompleteSelect and >> AutocompleteSelectMultiple admin widgets? >> >> I have not been able to find any information

Django admin pagination zero based?

2017-11-28 Thread Daniel Jewett
I just noticed that the URL get string in my admin app is off by one from the auto generated pagination links. It appears that the pagination URLs are zero based. For example if I'm on page 4 of results according to the pagination links, the URL looks like '?p=3' Is this typical? Any

AutocompleteSelect and AutocompleteSelectMultiple admin widgets.

2017-11-27 Thread Daniel Gola
Hello, Where I can find more detailed information about AutocompleteSelect and AutocompleteSelectMultiple admin widgets? I have not been able to find any information in the documentation. I will be grateful for your help. Best regards Daniel -- You received this message because you

Re: How can I learn to make a user login?

2017-11-25 Thread Daniel Roseman
I literally just pointed you to the page in the docs that lists the login form and view. -- DR. -- 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

Re: How can I learn to make a user login?

2017-11-25 Thread Daniel Roseman
On Saturday, 25 November 2017 19:59:10 UTC, Tom Tanner wrote: > > To put it another way: Is there something like `UserCreationForm`, but for > logging in users? > > On Saturday, November 25, 2017 at 2:20:11 PM UTC-5, Tom Tanner wrote: >> >> I guess what I mean is... >> >> What’s function do I

Re: How can I learn to make a user login?

2017-11-25 Thread Daniel Roseman
On Saturday, 25 November 2017 18:57:04 UTC, Tom Tanner wrote: > > I've read this tutorial > > > on making a simple user registration form. But what about a form for just > logging in existing

Enable to display datas which are related

2017-11-17 Thread Daniel Roseman
Why have you posted pictures? Don't. -- 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

Re: DJANGO app loose path from batch file

2017-11-06 Thread Daniel Roseman
On Monday, 6 November 2017 15:43:36 UTC, Xristos Xristoou wrote: > > I try to learn more about Django celery and rabbitmq to create some async > tasks and I have some question. > > Some programs can provide PYTHON API to can some development to use > modules from this program in python. > > one

Re: Building a search form with 4 required choices, which will be inserted as arguments in an URL [warning: long question]

2017-10-29 Thread Daniel Roseman
On Monday, 23 October 2017 16:59:36 UTC+1, Jack wrote: > > This is a semi-long question. Please let me know wherever I make a > mistake. > > I'm building a search form with 4 required choices, 1 of the choices is a > CharField with a max_length of 3. The other 3 choices are ChoiceField's. >

Re: Start Gunicorn on boot

2017-10-20 Thread Ricardo Daniel Quiroga
0-9cdb-16ce326d4e13%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- You received this message because you are subscribed to the Google Groups "Django users"

Hello All - Wordpress to Django Python Web Developer

2017-10-06 Thread Daniel Roseman
You probably want the Djangogirls tutorial. It takes you though building a blog, and includes deploying it to a host. The early sections are a basic introduction to programming but you can skip those. Find it here: https://tutorial.djangogirls.org -- DR. -- You received this message because

Re: get_ip_address() not working when used Custom Decorators

2017-09-28 Thread Daniel Roseman
On Thursday, 28 September 2017 20:03:09 UTC+1, Mannu Gupta wrote: > > While making a customer decorator in django, the code is here :- > > def owner_required(function): > def wrap(request, *args, **kwargs): > print(request) > ip_address = get_client_ip(request) >

Re: Need help formatting and incrementing a form in HTML

2017-09-26 Thread Daniel Roseman
On Monday, 25 September 2017 21:16:04 UTC+1, Zev wrote: > > So say I have data "a", "b", and "c". It would display itself as > > Object: a > > Object: b > > Object: c > > If I added d to the form, it would add > > Object: d > > What I'm hoping to do is add an increment to this so it displays

Re: Server Side Paging...How to get the totalcount of items?

2017-09-26 Thread Daniel Roseman
On Tuesday, 26 September 2017 11:29:45 UTC+1, Rakhee Menon wrote: > > Hi , > > I was trying to do server side paging and wanted to send the totalcount of > items along with itemPerPage..I have attached my code.Can anyone suggest > how to do it?? > > Thanks in Advance. > Please don't post code

Re: capturing url pattern from html forms

2017-09-23 Thread Daniel Roseman
On Saturday, 23 September 2017 19:48:37 UTC+1, Mel DeJesus wrote: > > > Hi - > > If the number '1' is submitted with the form below, the following url is > created: http://localhost:8000/item/?id=1 > > But I continually get a page not found. How can I style the regex in the > urlpatterns so

Re: Email validation in form

2017-09-12 Thread Daniel Roseman
On Tuesday, 12 September 2017 14:18:29 UTC+1, Daniel Roseman wrote: > > On Tuesday, 12 September 2017 08:52:37 UTC+1, Moreplavec wrote: >> >> >> >>> {% csrf_token %} >>> {{ form.non_field_errors }} >>>

Re: Email validation in form

2017-09-12 Thread Daniel Roseman
On Tuesday, 12 September 2017 08:52:37 UTC+1, Moreplavec wrote: > > > >> {% csrf_token %} >> {{ form.non_field_errors }} >> {% for hidden in form.hidden_fields %} >> {{ hidden }} >> {% endfor %} >>

Annotating a query with comparison result e.g. F('foo') == F('bar')

2017-09-01 Thread Daniel Hepper
raw SQL? - why do F-expressions not support comparisons? Cheers, Daniel [1] https://www.reddit.com/r/django/comments/6x9j5h/custom_order_by_parameter/ [2] https://github.com/django/django/blob/1.11/django/db/models/expressions.py [3] https://github.com/django/django/blob/master/django/db/mod

Re: Bizarre URL behaviour after deploying

2017-08-31 Thread Daniel Roseman
On Thursday, 31 August 2017 10:51:22 UTC+1, Tom Evans wrote: > > On Thu, Aug 31, 2017 at 2:09 AM, Bernd Wechner <bernd@gmail.com > > wrote: > > Daniel, > > > > Yes, I have deployed, that is the problem in a sense. URLs are clean in > dev > > and

Re: Bizarre URL behaviour after deploying

2017-08-30 Thread Daniel Roseman
On Wednesday, 30 August 2017 12:42:01 UTC+1, Bernd Wechner wrote: > > This has bamboozled me some. And the best thing I've found on-line doesn't > seem to apply: > > > https://stackoverflow.com/questions/26944908/django-url-mapping-how-to-remove-app-name-from-url-paths > > Let me summarise.

Re: Django deployement Apache

2017-08-29 Thread Daniel Roseman
On Tuesday, 29 August 2017 05:48:57 UTC+1, Vernon Swanepoel wrote: > > You can just copy the static files out of Django and into the static files > in your project itself. No. You should absolutely not do that. That is what the `collectstatic` command is for. -- DR. -- You received this

Re: How rewrite query in Django ORM?

2017-08-25 Thread Daniel Hepper
t; WHERE replace("T"."field", '-', ' ') = (replace('my_value', '-', ' ')) Hope that helps! Daniel On Thursday, August 24, 2017 at 10:44:40 PM UTC+2, Николай Инкогнито wrote: > > SELECT * FROM T WHERE REPLACE(T.field, '-', ' ') = REPLACE(VALUE,'-', ' ') > > --

Re: Retrieving objects created in trasaction

2017-08-24 Thread Daniel Hepper
I cannot reproduce this behavior with Django 1.11 and PostgreSQL 9.6. What database are you using? Does your Bar model maybe use non-standard Manager? Can you actually fetch to objects after the transaction has finished? On Wednesday, August 16, 2017 at 8:29:09 PM UTC+2, Александр Христюхин

Re: is there any way to dump all sqlmigrations automatically ?

2017-08-23 Thread Daniel Hepper
You can try this command: python manage.py showmigrations -p | sed -e 's/\[ ] \(.*\)\.\(.*\)/\1 \2/' | xargs -L1 python manage.py sqlmigrate Here is what it does: 1. "python manage.py showmigrations -p" shows all migrations in the order they will be applied as a list with checkboxes. 2.

can somebody help me understand django framework please

2017-06-23 Thread Daniel Jacob
I am new to django and i want some form of tutorial -- 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

Re: model choice field

2017-06-22 Thread Daniel Roseman
On Thursday, 22 June 2017 09:09:24 UTC+1, shahab emami wrote: > > hello > > i have a model choice field like this: > > LEVEL_CHOICES = [ >> ('1', 'one'), >> ('2', 'two'), >> ('3', 'three'), >> ] >> >> but when i select from database and say: > > > {{object.level}} > >

Re: makemigrations running for all apps defined in INSTALLED_APPS

2017-06-06 Thread Daniel Roseman
On Tuesday, 6 June 2017 07:52:00 UTC+1, Priyanka Thakur wrote: > > Hi, > > I am migrating from Django 1.7.4 to Django 1.10.0 and is facing issue > while running migrations. > > I am running the comand : python manage.py makemigrations > > Scenario, is that we araccessing model from Oracle

CENSORSHIP

2017-06-05 Thread Daniel
GO RETWEET https://twitter.com/VMozghovyi/status/823610114565427201 -- 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.

Re: Installing Django

2017-06-05 Thread Daniel Roseman
On Monday, 5 June 2017 12:33:28 UTC+1, Richard Mungai wrote: > > Hi.. > I'm trying to install django using the pip command i.e (pip install > django) but i keep getting the same error message i.e "Requirement already > satisfied: django in c:\program files\python >

TWITTER

2017-06-05 Thread Daniel
FOLLOW https://twitter.com/VMozghovyi -- 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

How to render a HTML template in App2 from App1

2017-05-29 Thread Daniel Roseman
Sorry, you should immediately delete all this code. It is horribly unsafe; you​ are storing passwords in plain text editor you must **never** do. Django already includes a secure and extendable authentication framework, which you​ should use instead. (For the record, the problem is that you

Re: Session Variables

2017-05-29 Thread Daniel Roseman
On Monday, 29 May 2017 06:04:02 UTC+1, James Schneider wrote: > > > On May 28, 2017 9:35 AM, wrote: > > > tFetchData = users.objects.get(emailid = lEmailId) > > request.session['sPassword'] = tFetchData.userroles > request.session['sCompanyId'] =

Re: Connecting django to postgresql database

2017-05-25 Thread Daniel Roseman
On Thursday, 25 May 2017 12:48:32 UTC+1, Njogu wrote: > > > however when i run the command *'python manage.py migrate'* it does not > identify the word migrate, and when i run the command '*python manage.py > syncdb*' i get the following error; > syncdb has not existed in Django since version

Re: View Function Signature?

2017-05-13 Thread Daniel Roseman
On Friday, 12 May 2017 15:11:55 UTC+1, nickeforos wrote: > > Thanks for the link. I understand these examples but still I would like to > see how a view function is defined. > > I also would like to see it in PyCharm. When I click on a view function in > PyCharm I only see: > > def

Re: get method inside class based view

2017-05-07 Thread Daniel Roseman
On Sunday, 7 May 2017 17:21:10 UTC+1, Ismail Sarenkapic wrote: > > The question is, what is the purpose of get method here,when we have post > method > is it useless in this case?If not what is function of get method? > > Why would it be useless? The get method is for GET requests, the post

Re: Error was: cannot import name 'GDALRaster in Window 8.1

2017-05-04 Thread Daniel Wiesmann
Your question regarding raster2pgsql has nothing to do with Django, so please ask questions related to that somewhere else (for instance onhttps://gis.stackexchange.com/ ) Regarding your first error, could you share the output of the following command on your command line: gdalinfo

Re: Django Tutorial | sqlmigrate command ending in error

2017-04-30 Thread Daniel Roseman
You haven't given nearly enough information to help you. You need at least to post the contents of your polls/migrations/0001_initial.py, and your DATABASES settings. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-07 Thread Daniel Roseman
On Friday, 7 April 2017 15:46:36 UTC+1, shahab emami wrote: > > hello > i have a simple question > please help me if you can > > > i want to install this package on my project: > > https://pypi.python.org/pypi/django-secretballot/ > > I am doing the installation step by step but after adding

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: Not able to paginate with TemplateResponseMixin view

2017-04-02 Thread Daniel Roseman
On Sunday, 2 April 2017 15:23:35 UTC+1, Rajesh Benjwal wrote: > > I was trying to paginate course list view but not able to do it. I tried > puting paginated_by in views and this > > http://dpaste.de/7Mea > > code in the template but it seems like it does work that way and I am > missing

Re: What was the rationale behind ClassBasedView.as_view()

2017-03-13 Thread Daniel Roseman
On Monday, 13 March 2017 18:36:46 UTC, Frederik Creemers wrote: > > Django views are just functions that take a request, and possibly some > other args, and return a response. To get such a view from a class based > view, you can `as_view()` on it. Why is that? Wouldn't it make the code >

Customs Django Admin "add" view.

2017-03-13 Thread Daniel Gola
regards Daniel -- 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 email to dj

Re: Is it good practice to access the request from a model manager?

2017-03-11 Thread Daniel Hepper
eed a middleware, have less global state and you keep your manager decoupled from the request. It's a bit more typing though :) Cheers, Daniel Hepper https://consideratecode.com On Thursday, March 9, 2017 at 1:37:20 PM UTC+1, Antonis Christofides wrote: > > So you've rebranded your pro

Re: Is this a bug? KeyError: 'is_popup' on mysite/admin, while logging level = DEBUG. Django 1.10.6.

2017-03-11 Thread Daniel Hepper
to only log messages with loglevel INFO and higher. 'loggers': { 'django': { 'handlers': ['file'], 'level': 'DEBUG', 'propagate': True, }, 'django.template': { 'handlers': ['file'], 'level': 'INFO', 'propagate': True, }, }, Hope that helps, Daniel https://consideratecode.com On Friday, March 10, 2017

Re: Django queryset High CPU Usage

2017-03-11 Thread Daniel Hepper
In additions to the suggestions you already received from others, have a look at django-import-export. It allows you to easily export data in various formats. Hope that helps, Daniel Hepper https://consideratecode.com On Friday, March 10, 2017 at 12:06:13 PM UTC+1, Web Architect wrote: > &

Re: Error running Django tutorial

2017-03-08 Thread Daniel Bess
Hello! Daniel > On Mar 8, 2017, at 12:51 AM, Melvyn Sopacua <m.r.sopa...@gmail.com> wrote: > > Hi, > > On Tuesday 07 March 2017 01:24:02 Vanja Falck wrote: > > > > urlpatterns = [ > > url(r'ˆpolls/', include('polls.urls')), > > url(r

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 <crocha09...@gmail.com> wrote: > > Hi, > i try used django-hitcount but really not for website high tr

Re: Advice: django deploy vps error 502

2017-03-07 Thread Daniel Hepper
, but it won't help against a proper DDoS attack. Note that if you configure request limiting, that one person running ab will see errors, but the site will still work for anyone with a different IP address. Hope that helps, Daniel Hepper https://consideratecode.com On Thursday, March 2, 2017 at 6:56:55

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: Iframe'd page in Django template can't find it's Javascript or CSS files, 404 error

2017-03-04 Thread Daniel Roseman
On Saturday, 4 March 2017 15:57:49 UTC, Tom Tanner wrote: > > >How are you referring to the assets in the template? > > In `interactive/index.html`, in the `` tag, I have ` src="scripts/main.js">` > Well, if you wanted to load the scripts from /interactive-1/scripts/main.js, then that's what you

Re: Iframe'd page in Django template can't find it's Javascript or CSS files, 404 error

2017-03-04 Thread Daniel Roseman
On Saturday, 4 March 2017 13:30:37 UTC, Tom Tanner wrote: > > In my `views.py`, I have one path render an html file: > > def interactive(request): > if request.session.get('interactiveID') == None: > t= get_template('blank-interactive.html') > else: > interactive_template=

Re: group by 3 fields

2017-02-26 Thread Daniel Roseman
On Sunday, 26 February 2017 11:11:39 UTC, larry@gmail.com wrote: > > Order by is not the same as group by. Group by does aggregation > > You should explain what you want to achieve. Grouping is pointless on its own. In any case, when working with an ORM like Django's it is generally not

Re: PostgreSQL get_object_or_404 matching query does not exist when indeed it does?

2017-02-18 Thread Daniel Roseman
On Saturday, 18 February 2017 17:37:49 UTC, Nikoleta Misheva wrote: > > I am querying PostgreSQL using *get_object_or_404 * but it throws and > exception *PairUsers matching query does not exist *and after that *During > handling of the above exception, another exception >

Re: issue with django's example version 1.10 in windows 7 ultimate

2017-02-05 Thread Daniel Roseman
The instructions say to go to http://localhost:8000/polls/ in your browser. You're going to http://localhost:8000/, but there's nothing defined for that URL. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: form_invalid

2017-01-30 Thread Daniel Roseman
This is bad advice. You should almost never need to override the get or post methods on a class based view; there are always more specific methods to use. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Am I stupid or is there an essential error in Django 1.10 Docs?

2017-01-16 Thread Daniel Roseman
On Monday, 16 January 2017 15:53:56 UTC, Peter Müller wrote: > > For the traceback: http://pastebin.com/Wy7And6M > And the views configuration: http://pastebin.com/q0V3bQay > > > thanks > > Peter > The traceback shows that you are importing your views module in the __init__.py of your app.

Re: Am I stupid or is there an essential error in Django 1.10 Docs?

2017-01-16 Thread Daniel Roseman
On Sunday, 15 January 2017 18:03:54 UTC, Peter Müller wrote: > > Hello everybody. > > > I just began learning how to use django. So I wanted to include data from > the database in a testwebsite. > Therefore I made a new app and created a model called "user" and a view > that should fill a

Showing user's data on page

2017-01-02 Thread Daniel Roseman
This isn't a custom user model, it's a related model - what would normally be called a user profile. Regardless, there *is* a reference from User to CustomUser, via the one-to-one relation: you can just do `user.customuser`. -- DR. -- You received this message because you are subscribed to

Re: ImageField always calling update_dimensions_fields

2016-12-04 Thread Daniel Roseman
On Sunday, 4 December 2016 00:47:06 UTC, ggi...@gmail.com wrote: > > > I needed to get to the width and height of an image. After discovering > that doing so on an ImageField loads the file, I added width_field and > height_field to my model. > > I did a migration and starting using the new

Re: wsgiref - When does the complexity of question require posting to the Developers or other forums?

2016-12-01 Thread Daniel Roseman
On Thursday, 1 December 2016 13:16:07 UTC, NoviceSortOf wrote: > > > > Hi All, > > After hours of looking for solutions, here on Stackoverflow, GitHub, > Django site and other forums, > and seeing that at least 2 other posts related to what per web chatter > appears to be a known > bug in Django

How does django pass data through post?

2016-11-29 Thread Daniel Roseman
The problem is in your html. Browsers can only send data for inputs with a `name` attribute, which Django then uses as the key in the querydict, whereas the `value` attribute becomes the value for that key. None of your inputs have names. It also doesn't make sense to add the id to the form or

Re: how to run django under apache on windows 10

2016-11-18 Thread Daniel Roseman
On Friday, 18 November 2016 13:58:41 UTC, bob gailer wrote: > > Goal: run django under apache on windows 10. I have tried many things, > none of which have worked. Errror messages up to wazoo. Google has not > been my friend: I found a lot of articles Everything I read is either > oriented to

Re: Django and asynchronous tasks

2016-11-10 Thread Daniel Chimeno
Hello, One simple approach is to persist the calculations in the database, then you can use a view to display them in another page. Hope it helps. El jueves, 10 de noviembre de 2016, 9:05:29 (UTC+1), Alain Muls escribió: > > Hi All > > I am building a website which makes calculations about the

How to hook into the admin site to count login attempts with REST API / proxy?

2016-11-04 Thread Daniel Grace
Hello, I have a REST API which is not publicly accessible as it is behind a proxy. However the admin site is publicly available through an NGINX server. The REST API already has functionality to count failed login attempts and I would like to duplicate that functionality on the admin login

Django support new released Plesk Onyx

2016-10-27 Thread Daniel Chimeno
Hello, Just wanted to share my thoughts here. Plesk (a major web control panel solution) has recently launched its new version 12.5 (Onyx). They finally support other programming languages and frameworks, before this they only support PHP. The marketing website (https://www.plesk.com/onyx/)

Re: Using Socket Programmaing with django(for a chat room web app)

2016-10-26 Thread Daniel Furman
I'm a fan of socket.io I've done this in PHP using laravel and redis. There are python pub/sub providers as well so swapping the laravel/PHP for Django and Python should be very doable. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: django-admin commands, diango 1.10 with python 2 & python 3 on windows installed

2016-09-27 Thread Ricardo Daniel Quiroga
receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.g

Re: Hello - need help on accessing current user in django forms.

2016-09-27 Thread Ricardo Daniel Quiroga
e.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/f98a65ca-57da-4ec7-a2f4-d2a79f3929d2%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/f98a65ca-57da-4ec7-a2f4-d2a79f3929d2%40googlegroups.com?u

Deleting PROTECTED objects that would be deleted by a CASCADE anyway

2016-09-23 Thread Daniel Izquierdo
that the current behavior is a bug, I'll open a ticket with a proper test case and work on a fix. Thanks, -- Daniel Izquierdo -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: Package a virtualenv to deploy across multiple systems?

2016-09-22 Thread Ricardo Daniel Quiroga
groups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: Regex Validators doesn't validate while working in a shell

2016-09-12 Thread Daniel Roseman
On Monday, 12 September 2016 14:36:23 UTC+1, ashish...@finoit.co.in wrote: > > I've configured user's username field in following way > > username = models.CharField( > _('username'), > max_length=30, > unique=True, > help_text=_('Required. 30 characters or fewer.

Re: Getting Start Django

2016-08-31 Thread Daniel França
I rather recommend you using a virtualenv and install using pip instead http://tutorial.djangogirls.org/en/django_installation/ On Wed, 31 Aug 2016 at 14:50 jsroyal wrote: > > sudo apt-get install python-django-common > Through this command. > > > > -- > You received this

Re: Getting Start Django

2016-08-31 Thread Daniel França
How did you install Django? On Wed, 31 Aug 2016 at 14:17 jsroyal wrote: > Hello guys, > I am newbie in Django and started learning with Standard Documentation > version: > *1.10.I *already Install Django 1.10 and Python 3.4 in Linux Ubuntu 15.04 > But in first phage I

Re: cache.get_or_set : function name is misleading

2016-08-31 Thread Daniel França
But it's okay, isn't it? I mean, *add* is used to add the key if the key doesn't exist. *set* on the other hand, will set the value anyway. In the case of *get_or_set *the set should work like an *add *because it'll be called only in case the key doesn't exist. Or am I missing something? On

Re: error in installing django[argon2] -regarding

2016-08-30 Thread Ricardo Daniel Quiroga
ll_eggs > return self.build_and_install(setup_script, setup_base) > File > "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", > line 1101, in build_and_install > self.run_setup(setup_script, setup_base, args) > File > "/usr/

Re: Validators and django.contrib.postgres.fields JSONField

2016-08-28 Thread Daniel Roseman
On Sunday, 28 August 2016 07:54:47 UTC+1, Ryan Causey wrote: > > So I've dug into this a little more, and I've come up with the debugger > trace below. > > -> dummyModelInstance.full_clean() > c:\program files\python35\lib\site-packages\django\db\models\base.py( > 1210)full_clean() > ->

Re: Curl PUT Request With JWT Authorization Header

2016-08-23 Thread Ricardo Daniel Quiroga
e.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/676040dc-a7fc-4ca8-96ce-8fd09559ab87%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/676040dc-a7fc-4ca8-96ce-8fd09559ab87%40googlegroups.com?utm_me

Re: Using the Django ORM in a long-running worker process

2016-08-19 Thread Daniel Tao
Thank you for the thorough response, which has proven very helpful, mainly by reinforcing what I was growing to suspect: we've updated the code in our worker processes to close the DB connection after every message, and sure enough we've seen a huge improvement in the form of significantly

Re: connecting to mssql database

2016-08-17 Thread Daniel França
What errors are you getting? On Wed, 17 Aug 2016 at 14:15 sum abiut wrote: > > Hi, > i am having a very hard time figuring out how to connect to a mssql > database. i've try following this guide but nothing seems to be working. > please help > >

Re: Using the Django ORM in a long-running worker process

2016-08-16 Thread Daniel Tao
, Daniel Tao wrote: > > Hi folks, > > My team has built a service comprising 3 main parts, a web application and > 2 long-running worker processes that process events from a message > exchange. All of these components interact with the same database and use > the same underlying

Re: Web based IDE for django

2016-08-16 Thread Daniel França
hmm, not sure if I got what you want...but have you tried cloud9? https://c9.io/ On Tue, 16 Aug 2016 at 07:30 Jani Tiainen wrote: > Hi, > > Just for curiosity, can you point out any web based editor does what > you're asking for, even not Python based? > > To me it sounds

Using the Django ORM in a long-running worker process

2016-08-15 Thread Daniel Tao
Hi folks, My team has built a service comprising 3 main parts, a web application and 2 long-running worker processes that process events from a message exchange. All of these components interact with the same database and use the same underlying Django "app" for ORM models (i.e. the 2 worker

Re: How to start Django app with apache server

2016-08-07 Thread Daniel Roseman
There is no equivalent. If you're following those instructions, Django will run via Apache. -- 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

Re: How do I fetch table values in pdf using django?

2016-07-13 Thread Ricardo Daniel Quiroga
s. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b6c6c51e-c8c5-4c53-9d2b-39d6c3adf37d%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/b6c6c51e-c8c5-4c53-9d2b-39d6c3adf37d%40googlegroups.com?utm_medium=email_source=fo

Re: How can i add my django project to Bitbucket ?

2016-07-05 Thread Ricardo Daniel Quiroga
correction $ git remote add origin g...@bitbucket.org:[MyUSER]/[ProyectName].git 2016-07-05 10:38 GMT-03:00 Ricardo Daniel Quiroga <l2radamant...@gmail.com>: > > $ cd myproject > $ git init > $ touch README.md > $ git add . > $ git commit -m 'first commit' > $ git re

Re: How can i add my django project to Bitbucket ?

2016-07-05 Thread Ricardo Daniel Quiroga
le.com > <https://groups.google.com/d/msgid/django-users/4018e03a-c861-fde2-3ed0-60c34d01c55c%40bristle.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- You received this message because you

Re: Contribute to Django - Python 3 or Python 2

2016-06-30 Thread Ricardo Daniel Quiroga
https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a0539448-0019-40a2-b732-e2c44799877b%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a0539448-0019-40a2-b732-e2c44799877b%4

Re: Real time change color website

2016-06-30 Thread Ricardo Daniel Quiroga
/groups.google.com/d/msgid/django-users/59825349-ba60-4274-8a58-22e3c883e1f3%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/59825349-ba60-4274-8a58-22e3c883e1f3%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://group

inconsistent namespacing for fixture files vs. template files (and everything else)?

2016-06-26 Thread Daniel Brotsky
In the Django code wiki topic on Fixtures , there is a recommendation to "namespace" fixture files for an app by using the app name as a prefix in the filename (the example given is *myapp/fixtures/myapp_testdata.json*). But the Django tutorial on

Re: authenticate a user without databse

2016-06-07 Thread Daniel Wilcox
ike fun, cheers, Daniel On Mon, Jun 6, 2016 at 10:55 PM, prabhat jha <prabhat.jha@gmail.com> wrote: > hey bro thanx,but i am not using django authentication pattern. > so @login required will not work in my condition. > >> >> -- > You received this message because

<    1   2   3   4   5   6   7   8   9   10   >