Re: Django API efficient enough for filtering tens of millions of records?

2011-01-18 Thread Nick Arnett
ing a bulk insert to load into the database. Bulk inserts will be FAR more efficient than using Django. Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubs

Android mail? (Re: [tueysuezseftali:76683] [android-developers] Select mp3 to play?)

2011-02-17 Thread Nick Arnett
Anybody on django-users know why this mail is coming to our group? It's strange - the "To" header is android-developers, but the reply-to is django-users. I can't quite tell if it is a Google Groups problem or the person posting ( nikola1...@gmail.com). Nick On Thu, Feb

Re: Django Job Opportunity at IDLE GAMES (The Social Game Changers)

2011-02-23 Thread Nick Arnett
On Wed, Feb 23, 2011 at 12:35 PM, Aliciasf wrote: ...and (iv) the Tempting system... > That's the whole thing, isn't it? ;-) Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Override AdminAuthentication form for custom auth in Django Admin

2011-03-03 Thread Nick Serra
Hey everyone, thanks for looking. Running into a problem getting the Django Admin working with a custom auth system. Have everything working, but I cannot get the admin to use my custom auth app to login. I am not running a custom auth backend, but an entirely different auth app in my project. Bas

Re: django 1.2 + Google app engine + templatetags

2011-03-07 Thread Nick Rosencrantz
Solved. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this gr

Google app engine django 1.2 localization

2011-03-12 Thread Nick Rosencrantz
ale/LANG_CODE/LC_MESSAGES/django.po It still won't work. I'm considering why and welcoming any more advice or recommendation how to enable i18n features with django for google app engine. If any know-how is on this issue then kindly instruct here how to proceed. Regards, Nick Rosencr

Re: Google app engine django 1.2 localization

2011-03-12 Thread Nick Rosencrantz
Many thanks for the idea! I'll try the setup you're referring to. Regards, Nick Rosencrantz On Mar 12, 9:48 am, Jiten Singh wrote: > Hi Nick, > > While working with GAE I use django provided onhttp://allbuttonspressed.com, > it is django non rel i know you must > have h

Re: extend User Model for custom fields

2011-03-25 Thread Nick Serra
Andre's solution is out of date. Calvin is correct, use the user profile model that is built into django auth. OP, the link you found is correct. On Mar 25, 11:39 am, Andre Terra wrote: > This is the correct way: > > http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-m... > > Sin

.get() has unexpected behaviour on a queryset after previously applying .order_by().distinct()

2015-04-15 Thread Nick Smith
>>> from django.db.models import models >>> class MarketPrice(models.Model): market = models.CharField(max_length=30) crop = models.CharField(max_length=30) price = models.PositiveSmallIntegerField() date = models.DateField() def __str__(self): r

Re: To Django or not to Django

2013-11-24 Thread Nick Santos
more tightly integrated than a CMS, then django could be a good option for you. -Nick On Sun, Nov 24, 2013 at 10:37 AM, wrote: > Hi, > I'm looking to build a contest website where there would be a challenge > every so often where people need to post a video or a picture. Then all

Re: How do I test my Django App on my Phone

2013-12-09 Thread Nick Santos
hine in its firewall. Then determine that machine's public IP address (eg 1.2.3.4) and enter that into your browser as 1.2.3.4:8000. Then it should come up on your phone. -Nick On Mon, Dec 9, 2013 at 10:44 AM, Muhammad Ali wrote: > Hello, > > I'm developing a Django-pow

Re: Need some advise on how to use a RESTful API

2013-12-20 Thread Nick Apostolakis
Hello there, In my point of view, when you develop an app using a rest full api you go through the same moves as when writing the web app using the native interface. In my case I have created both. I wrote first the web interface and then the api, but a different approach would be to write first th

Re: virtualenv on Windows

2014-02-03 Thread Nick Santos
FYI, virtualenvwrapper was ported to windows: https://pypi.python.org/pypi/virtualenvwrapper-win It works seamlessly like the linux/OSX versions -Nick On Mon, Feb 3, 2014 at 3:10 PM, Mike Dewhirst wrote: > Michel > > I learned quite a lot and appreciate it greatly! > > Th

Re: Django Windows Install Issues

2014-02-25 Thread Nick Santos
nstall Django. Also, I'd highly recommend you install a package manager like "pip", which will make future installs much easier. -Nick On Tue, Feb 25, 2014 at 1:23 PM, Joe Buty wrote: > Hello, I am having trouble getting Django to work. I have installed python > and download

Re: DDT not showing

2014-03-09 Thread Nick Santos
Since you didn't say that you have - did you add it to your INSTALLED_APPS? -Nick On Sun, Mar 9, 2014 at 12:03 PM, Aiden wrote: > Hi all, > > Banging my head against a wall trying everything to get DDT to appear > using Gunicorn+nginx > I have the following: > > DEB

Re: Gunicor + Postgres + Python 3

2014-03-09 Thread Nick Santos
Hey Henrique, Can you send the code for the view that generates the page? -Nick On Sun, Mar 9, 2014 at 9:14 PM, Henrique Oliveira < henriqueollive...@gmail.com> wrote: > Hi there, > > I have set Django + gunicorn + python 3 in a production env, but I am > gettin critical

Re: A subprocess call fails, but only under Django

2014-03-11 Thread Nick Santos
would fail, even with copy on write, with certain OS settings - I'm far from an expert in this area). Have you tested this code on another machine to see if it exhibits the same behavior? -Nick On Tue, Mar 11, 2014 at 5:07 PM, Shawn Milochik wrote: > Hi Russ, thanks for the reply. > &g

Fwd: Moving from 1.2 to 1.6

2014-04-09 Thread Nick Santos
per valuable in tracking down the error. -Nick On Wed, Apr 9, 2014 at 4:00 PM, John Fabiani wrote: > Do you guys think is possible the jQuery Form plugin is some how > interfering with the token? > > Johnf > > On 04/09/2014 02:18 PM, John Fabiani wrote: > > The code looks gr

Re: Fwd: Moving from 1.2 to 1.6

2014-04-09 Thread Nick Santos
value instead of the cookie value (I've AJAXed many forms and have never dealt with a CSRF cookie). Also, does the form work if you don't send it via AJAX and just do a normal POST/GET from the browser? -Nick On Wednesday, April 9, 2014 5:59:37 PM UTC-7, John Fabiani wrote: > > I h

Error when creating a django app in a specified folder with the same name as the app

2017-12-19 Thread Nick Gilmour
I'm using: $ mkdir backend/apps/my_app $ python manage startapp my_app ./backend/apps/my_app Is this normal? Any ideas why is this happening? Regards, Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Setting up Django on Google Cloud (basic server)

2018-01-20 Thread Nick Sarbicki
Hi Samuel, You probably haven't opened access to port 8000 to the public Try run server on port 80. Nick. On Sat, 20 Jan 2018, 14:53 Samuel Muiruri, wrote: > I had this issue before with AWS i remember it was just as stressful then > and actually can't remember what actu

Re: Will django include a simpler way to change username to email for registration in the future ?

2018-01-24 Thread Nick Sarbicki
django allauth (http://django-allauth.readthedocs.io/en/latest/overview.html) also has a pretty good setup for this as well as a lot of other functionality. As suggested it just takes a change in settings.py to move to email as username (although it isn't stored that way in the DB that is how it lo

Re: [python-uk] Setting up Django on Google Cloud (basic server)

2018-01-25 Thread Nick Sarbicki
There was a discussion on a slack channel a few days ago with someone who, suspiciously, had the same name and problem. They'd tried to set up firewall rules (not sure they worked) and was trying to get it running via port 80 with gunicorn. Haven't heard anything else so assuming fixed. On Thu, 25

Re: django 2 under python 2

2018-01-25 Thread Nick Sarbicki
Looks like a pypi "feature". You should pin your dependencies. On Fri, 26 Jan 2018, 00:08 Mirek Zvolsky, wrote: > Isn't the question a little oposite, Avraham ?? > > > > Dne čtvrtek 25. ledna 2018 22:42:37 UTC+1 Avraham Serour napsal(a): >> >> > I wonder why this is happening... >> because djang

Re: javascript transpilers

2018-01-28 Thread Nick Sarbicki
Agree with everything already said. Only thing I want to add is that while js has historically been a horrible language, the modern standards have helped rectify this. Modern js can be almost pleasant to work with nowadays. I wouldn't spend time transpiling python to js. Just try to learn js and

Re: javascript transpilers

2018-01-29 Thread Nick Sarbicki
lem I need to solve. Without going into analytical >> detail, all the code is serverside and now the project needs to move >> towards AJAX for user experience reasons. >> >> M >> >> On 29/01/2018 5:44 AM, Nick Sarbicki wrote: >> >>> >>> Agree

Django won't update when i restart httpd.service on Fedora 23 virtual machine

2018-03-10 Thread Nick Saway
HI, I have a Django site running on a Fedora 23 virtual machine via Apache, i believe it is using mod_wsgi. I updated the site files, and did "systemctl stop httpd.service " and "systemctl start httpd.service" but the old version of the site is still being served. I went into my project dire

Re: Django won't update when i restart httpd.service on Fedora 23 virtual machine

2018-03-10 Thread Nick Saway
On Saturday, March 10, 2018 at 2:57:51 PM UTC-7, Nick Saway wrote: > > HI, I have a Django site running on a Fedora 23 virtual machine via > Apache, i believe it is using mod_wsgi. I updated the site files, and did > "systemctl stop httpd.service " and "system

Nullable vs empty strings

2018-05-03 Thread Nick Sarbicki
I just saw this in the docs: https://docs.djangoproject.com/en/2.0/ref/models/fields/#null Suggesting that you should never set a CharField to null unless using a unique index. Is this generally accepted? Historically I've always nulled a CharField because using empty strings, as opposed to le

Re: Nullable vs empty strings

2018-05-03 Thread Nick Sarbicki
:32 PM UTC+1, Jani Tiainen wrote: > > And then you find out that Oracle implicitly converts empty strings to > NULLs which causes all kind of hassle. :) > > > On Thu, May 3, 2018 at 3:39 PM, Ken Whitesell > wrote: > >> Nick, >> >> A null string (stri

Possible bug with UploadedFile and form validation?

2016-06-13 Thread Nick Sarbicki
I've got an odd bug in my system, and while I'm not 100% convinced it is a Django bug, I don't think it is due to me either so thought I'd ask here for some clarification. Essentially if you upload a file to a form. If that forms clean() method reads that file (in my case it gathers data and ma

Re: Advice on python version for new project

2016-08-15 Thread Nick Santos
ounter something that forces you to use Python 2, you can downgrade without trouble. But if this application has anything close to the lifespan of the previous one, you'll want to be using Python 3 if at all possible. That's without mentioning the other benefits of Python 3 too! -Nick On

Limiting a SubQuery based on instance's OuterRef

2019-01-29 Thread Nick Gashkov
Hello there! Is it possible to limit a SubQuery to a dynamic value of an instance in a QuerySet? I.e. I'm looking for something like: queryset = model.objects.filter(field=OuterRef('field')).values('another_field')[:OuterRef('number')] Sincerely, Nick Gas

Re: Limiting a SubQuery based on instance's OuterRef

2019-01-30 Thread Nick Gashkov
Simon, Thank you for fast reply! I've tried to rewrite a query using RowNumber()... inner_subquery = queryset.objects.filter(date__gte=today, day_type='working_day') inner_subquery = inner_subquery.annotate(row_number=Window(expression=RowNumber(), order_by=F('number').asc())) inner_subquery =

Accessing child relations when overriding save()

2019-02-10 Thread Nick Emery
I am trying to wrap up my first app using Django (specifically Django Rest Framework which may change the save behavior), but have run into an issue that I haven't been able to solve for about 10 hours now. I am trying to override the save() method of a model to modify a field on a bunch of chi

Re: Accessing child relations when overriding save()

2019-02-10 Thread Nick Emery
e() of the child? > > On Sun, 10 Feb, 2019, 7:04 PM Nick Emery > wrote: > >> I am trying to wrap up my first app using Django (specifically Django >> Rest Framework which may change the save behavior), but have run into an >> issue that I haven't been able to

Re: Accessing child relations when overriding save()

2019-02-10 Thread Nick Emery
PM Shashank Singh wrote: > >> When do you create child objects?? >> >> On Sun, 10 Feb, 2019, 9:17 PM Nick Emery > wrote: >> >>> Tried this too but save() never actually gets called on the child (it >>> seems that the foreign key field of the ch

Re: Accessing child relations when overriding save()

2019-02-10 Thread Nick Emery
UPDATE: Finally figured it out! I ultimately did this by overriding `perform_create()` in my [Django Rest Framework view](https://www.django-rest-framework.org/api-guide/generic-views/) and making my changes after saving the object. On Sunday, February 10, 2019 at 8:34:44 AM UTC-5, Nick Emery

Re: Converting django app to iPhone app

2019-04-22 Thread Nick Sarbicki
Kind of... I've worked with several Django APIs that we use to back apps on Android and iOS as well as web apps. I generally find that's the key, make sure you can pass all the data along as an API and the rest is just understanding how to build a frontend on the platform. Django doesn't really g

Re: Converting django app to iPhone app

2019-04-22 Thread Nick Sarbicki
ve C or swift or rewrite > the entire app in objective C or swift. Why would you need to rewrite > the python back end that runs on the server? > > On Mon, Apr 22, 2019 at 10:27 AM Nick Sarbicki > wrote: > > > > Kind of... > > > > I've worked with several

Re: Converting django app to iPhone app

2019-04-22 Thread Nick Sarbicki
he problem. On Mon, 22 Apr 2019, 17:28 Larry Martell, wrote: > Yes, it only renders HTML and also has a lot of javascript. > > On Mon, Apr 22, 2019 at 12:25 PM Nick Sarbicki > wrote: > > > > That's the point, you don't. Assuming your backend has an effective wa

Re: help

2019-04-29 Thread Nick Sarbicki
/howto/custom-template-tags/#simple-tags - Nick On Mon, Apr 29, 2019 at 3:14 PM Tosin Ayoola wrote: > sup guys, i'm kinda lost and need help, i'm working on an electronic > noticeboard and course ware web app using django and i'm trying to have a > section on the notice

Re: Django with Docker

2019-04-29 Thread Nick Sarbicki
Hi Omer, Docker actually has docs on this itself: https://docs.docker.com/compose/django/ - Nick On Mon, Apr 29, 2019 at 4:19 PM Omer Ozsakarya wrote: > Hello all, > > How are you deploying your Django applications with Docker? > 1- Which packages, libraries are you writing

Re: Which Cloud Service Provider should be chosen to host Django Application

2019-05-02 Thread Nick Sarbicki
m and find what price/feature set/level of expertise required suits you best. - Nick On Thu, May 2, 2019 at 10:51 AM Balaji Shetty wrote: > Hi > > I do not have any experience for cloud hosting. Can you please suggest > Cloud Service Provider to host Django Application. > > My A

Re: Website slowed down drasticaly

2019-05-03 Thread Nick Sarbicki
will help you profile the code but worth seeing how it is served as well. - Nick On Fri, May 3, 2019 at 10:21 AM Chetan Ganji wrote: > One more thing - > > All the third party resources i.e. js and css files e.g. bootstrap, > jquery, etc; don't fetch them from your serve

Re: Website slowed down drasticaly

2019-05-06 Thread Nick Sarbicki
Hi Saurabh, If the diminishing support was a cause of the dramatic slowdown then this would have had to be intentionally put into the codebase. I'm almost certain this isn't the case. All losing support really means is that the developers no longer provide updates and security patches. There woul

Re: How to make Django Project Mobile Compatible

2019-05-11 Thread Nick Sarbicki
Hi, Django is completely naive to whether a frontend is mobile friendly or not. You can use react or angular, you can also use many other frontend frameworks. Django can work with all frontend frameworks. The choice is entirely up to you. On Sat, 11 May 2019, 08:04 Balaji Shetty, wrote: > Hi >

Re: set python 3.6.8 default in my ubuntu

2019-05-22 Thread Nick Sarbicki
s some documentation on this here <https://devcenter.heroku.com/articles/python-runtimes>. - Nick On Wed, May 22, 2019 at 1:48 PM omar ahmed wrote: > hello .. > just finished my first project with django but i can not publish it > because my default python is python 2.7.12 and Heroku now

Re: how i can become django master ?

2019-05-31 Thread Nick Sarbicki
https://docs.djangoproject.com/en/2.2/intro/overview/ - Nick On Fri, May 31, 2019 at 12:10 PM soroush safari wrote: > hello guys. where I need to start reading Django and her reference? > > -- > You received this message because you are subscribed to the Google Groups > "

Re: advantage of angular js with django??

2019-06-01 Thread Nick Sarbicki
> The biggest advantage is you can create, change or have multiple frontend systems on different platforms without having to make changes to your Django backend. For example you can create an AngularJS web app and a React Native app for iOS using the same Django backend. It's worth noting that thi

Re: Deploying a static website

2019-07-03 Thread Nick Sarbicki
The best way to deploy a static website is certainly on a bucket like s3. Heroku is massive overkill for this. Django is also unnecessary to host a static website. I do have a CMS that generates and uploads static websites built with Django, but not django actually hosting the site. On Thu, 4 Jul

Re: Slack community for Django

2019-07-17 Thread Nick Sarbicki
Hi Deep, I'm not sure if there is currently a dedicated django community (there was an unofficial one but I believe it was converted into the yellow ant community). We do however have a dedicated python community with a very active Django channel. It's linked on the PSF site here: https://www.pyt

Re: Slack community for Django

2019-07-17 Thread Nick Sarbicki
Cheers for the feedback Deep, Sadly given the scale of the current community it would cost up to around 1.6 million USD per year to use enterprise slack. I know some OSS communities have this enabled for free, slack has been approached about this but have sadly declined to give pyslackers the sam

Re: View Function Signature?

2017-05-12 Thread Nick Gilmour
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 myview_function(request) Inferred type: (request: Any) -> HttpResponse I would expect

Re: View Function Signature?

2017-05-14 Thread Nick Gilmour
Definition of url: *def url(regex, view, kwargs=None, name=None):* I also found this: *def view(request, *args, **kwargs):* here: *.../django/views/generic/base.py* On Sat, May 13, 2017 at 11:15 PM, Daniel Roseman wrote: > On Friday, 12 May 2017 15:11:55 UTC+1, nickeforos wrote: >> >> Thank

Re: View Function Signature?

2017-05-14 Thread Nick Gilmour
> > Neither one of these is what was being asked for. I didn't say I have found what I was looking for. All answers are sufficient to me for now. Thanks. On Sun, May 14, 2017 at 10:51 PM, James Bennett wrote: > On Sun, May 14, 2017 at 1:36 PM, Nick Gilmour > wrote: >

Django+Haystack+Elastic issue

2017-05-22 Thread Nick Gilmour
hould give more than 50 results. So, where does this limitation come from? How can I change it? I cannot find a setting neither for haystack nor for django which prevents showing more than 20 results. Thanks, Nick -- You received this message because you are subscribed to the Google G

Re: Django+Haystack+Elastic issue

2017-05-24 Thread Nick Gilmour
jango works... On Wed, May 24, 2017 at 4:55 PM, Avraham Serour wrote: > it sounds like elastic is paginating, did you check that? > > On Tue, May 23, 2017 at 12:41 AM, Nick Gilmour > wrote: > >> Hi all, >> >> >> >> I'm following an example to s

Re: Django+Haystack+Elastic issue

2017-05-24 Thread Nick Gilmour
hy...). I have increased it to 50 and I'm getting 50 hits. On Thu, May 25, 2017 at 12:06 AM, Nick Gilmour wrote: > Thanks for the hint! > It seems to be related with Django's pagination: > with: > {{ page.paginator.count }} > and > {{ page.paginator.num_pages }}

Re: relation "django_session" does not exist

2020-02-26 Thread Hella Nick
Me to,My error was is Traceback (most recent call last): File "D:\Python3\lib\site-packages\django\contrib\sessions\backends\base.py", line 190, in _get_session return self._session_cache AttributeError: 'SessionStore' object has no attribute '_session_cache' During handling of the above e

Re: Django IRC...Is it Active?

2020-03-20 Thread Nick Sarbicki
If you are just looking for help the #django channel on the python developers slack workspace (pyslackers.com) is pretty active. Full disclosure - I'm an admin of the slack workspace. - Nick On Fri, Mar 20, 2020 at 2:14 PM Andréas Kühne wrote: > Currently the django project recommen

Re: keep getting the Fatal Python error with mod_wsgi and apache

2020-03-25 Thread Hella Nick
你的服务器是安装的python3.8.2的版本吗? Fateh Budwal 于2020年3月26日周四 上午6:03写道: > Hello Everyone > I have complied python 3.8.2 with django 2.2. it run locally fine but > when i try to deploy it with Apache and mod_wsgi 4.7.1 and getting the > below error. Any suggestions ? > > Current thread 0x7f5aa48af880

Re: Django pdfs

2020-04-22 Thread Hella Nick
me to。do you help me? Perceval Maturure 于2020年4月22日 周三07:31写道: > Hi Django Users > > I am developing a Django document management system which will cater for > pdf file uploads. What is the best resource to use (tutorial) as I want to > have the pdfs accessible from admin. Can I do this with Djan

Re: hosting django app on app engine

2020-04-23 Thread Nick Sarbicki
he key thing is that, as App Engine IPs are arbitrary, you cannot connect directly to the database but need to tell App Engine to load up a proxy and then connect to that instead. Sorry I can't help much more - I wish I'd written down the steps I took last I did this, but it's been

Django and uwsgi and nginx is log error

2020-05-08 Thread Hella Nick
我的uwsig日志显示: clock source: unix detected number of CPU cores: 2 current working directory: /project/work/teacher writing pidfile to /project/work/teacher/uwsgi.pid detected binary path: /project/env/online/bin/uwsgi !!! no internal routing support, rebuild with p

Re: Can Django (application itself) connect to MySQL via Kerberos/GSSAPI ticket instead of password?

2020-05-19 Thread Hella Nick
Mysql8.0以上的版本更改了加密规则,这可能需要你多研究一下遇到的问题。我记得需要修改Django框架中的一些源码。 在 2020年5月20日星期三 UTC+8上午9:37:33,Edward Rose写道: > > Hello - Does Django have any support for the web application itself being > able to connect to MySQL using Kerberos Authentication / GSSAPI rather than > a hard coded database user nam

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread Hella Nick
你帮我获得加拿大的工作移民签证,我就可以帮你解决问题。 在 2020年5月17日星期日 UTC+8上午4:51:45,chaitan写道: > > Hi, I am facing ModuleNotFoundError in my Django application. It got > configured with multiple settings files for production, Development & > Testing. > When I Try to run Python manage.py runserver --settings= settings_d

Re: Can't Fix the No Reverse Error in Ajax

2020-05-19 Thread Hella Nick
button标签中的type属性设置为button, Ahmed Khairy 于2020年5月20日周三 上午1:54写道: > I am trying to use Ajax to submit a like button, I believe everything is > in order but I keep getting django.urls.exceptions.NoReverseMatch: Reverse > for 'like_post' with arguments '('',)' not found. 1 pattern(s) tried: > ['scor

Re: Can't Fix the No Reverse Error in Ajax

2020-05-19 Thread Hella Nick
Django中的表单提交按钮不要使用submit属性,否则会触发get请求,或者发生错误。 Hella Nick 于2020年5月20日周三 上午11:09写道: > button标签中的type属性设置为button, > > Ahmed Khairy 于2020年5月20日周三 上午1:54写道: > >> I am trying to use Ajax to submit a like button, I believe everything is >> in

Re: NEW TO DJANGO

2020-05-19 Thread Hella Nick
你是阿三吗? Akshat Zala 于2020年5月20日周三 上午11:27写道: > I agree with Vishesh, You require api key which needs to be in settings.py > file > > On Tuesday, 19 May 2020 20:43:17 UTC+5:30, Vishesh Mangla wrote: >> >> Your question is not clear to me. What exactly do you want ?You do not >> require django to g

Re: Can't Fix the No Reverse Error in Ajax

2020-05-20 Thread Hella Nick
May 2020, 6:18 am Ahmed Khairy, > wrote: > >> Do you mean that this line should be changed? >> >> > 'post_id' class= "btn btn-danger btn-sm" value="{{post.id}}" >> > No ! Don't Print it >>

Re: Getting the except django.core.exceptions.ImproperlyConfigured while querying DB

2020-05-20 Thread Hella Nick
如果您确定数据库中有数据的话,那么就是您该视图的url设计错误。Django数据库查询的get方法查询不到数据会报错。希望可以帮助到您。 ratnadeep ray 于2020年5月20日周三 下午4:16写道: > I am trying to fetch a few rows from the DB using the following code in my > views.py: > > from django.http import HttpResponsefrom django.shortcuts import renderfrom > fusioncharts.mode

Re: Getting the except django.core.exceptions.ImproperlyConfigured while querying DB

2020-05-20 Thread Hella Nick
此处有语法错误: path('display_data/', views.display_data, name= 'display_data'), 正确的写法为:path(r'^display_data//$', views.display_data, name= 'display_data/'), 请记住,一定要加 / -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Integrate wepay payments in django site

2020-05-26 Thread Hella Nick
你应该是阿三吧? Akshat Zala 于2020年5月20日周三 上午11:32写道: > You can install the following package and study the documentation: > > 1. https://pypi.org/project/django-wepay/ > > On Tuesday, 19 May 2020 22:56:24 UTC+5:30, Shyam Acharjya wrote: >> >> greetings, >> >> has anyone here have any prior experience i

Re: django-tenants domain issue

2020-06-02 Thread Hella Nick
你是要部署在互联网上吗? DumbaClassics 于2020年6月3日周三 上午8:56写道: > Hello Family > > I have been following a set up documentation for django-tenants. I did all > the set-up to even create a public domain and two tenant domains. For > allowed hosts I put ["*"] , though not safe as per clinical research data > it

Re: Model Arithmetic Operation

2020-06-02 Thread Hella Nick
- Niggers are clearly not suited for the job. Ifeanyi Chielo 于2020年6月3日周三 上午7:43写道: > Dear all, > > Hello, please can someone help me with the code to subtract 'b' from 'a' > as shown below > > > a = Soapprod.objects.aggregate(Sum('Serial_White_Guava')) > > > > b = Soapsales.objects.agg

Re: pagination of a specific context in multiple context in ListView not working in django?

2020-06-02 Thread Hella Nick
Do you use Django or Django Rest Framework? Ali Ahammad 于2020年6月2日周二 上午7:51写道: > in django, i am trying to list some queries of several objects like user > lists, categoies and Post list. the homepage will be contained couple of > blocks or boxes. each box will have different query list like Pos

Re: Please help me out!!!!!

2020-06-03 Thread Hella Nick
请检查您的路由地址,问题就出现在那里。 meera gangani 于2020年6月3日 周三15:19写道: > Hello Django-users > > href is not working > here is my views.py file and my urls.py file > > Please Help me out!! > > Thank you in advance > -Meera > > -- > You received this message because you are subscribed to the Google Groups > "Djan

Can someone help me??

2020-07-01 Thread Hella Nick
Can someone help me?? My project catalogue: My setttings: TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'blog/templates/')] , 'APP_DIRS': True, 'OPTIONS': { 'context_process

Re: Can someone help me??

2020-07-01 Thread Hella Nick
gt;> The Error is straight forward, you are using an operand "+" for two two >> data types that it can't be used on. This might be from your "volume" >> function. >> >> On Wed, Jul 1, 2020 at 9:30 AM Hella Nick wrote: >> >>> Can so

Re: Can someone help me??

2020-07-01 Thread Hella Nick
Dear Mir oba stephen: I deleted "volume" function,But The result is the same. Hella Nick 于2020年7月2日周四 上午10:51写道: > Dear Sencer: > > >> index > > > > >- > > There is no problem with writing this wayI don't understand wh

Re: Can someone help me??

2020-07-01 Thread Hella Nick
elf): > self.number += 1 > self.save(update_fields=['number']) > > def get_pre(self): > return Article.objects.filter(id__lt=self.id).order_by('-id').first() > > def get_next(self): > return Article.objects.fil

Re: Can someone help me??

2020-07-01 Thread Hella Nick
"{% url 'blog:index' %}" >> >> you might need to do the same with other urls >> >> >> On Thu, Jul 2, 2020 at 9:31 AM Hella Nick wrote: >> >>> class Article(models.Model): >>>> # time = datetime.datetime.now() >>&

Re: User.objects.all() only returns username

2020-07-03 Thread Hella Nick
send me your models.py and views.py RANGA BHARATH JINKA 于2020年7月3日 周五15:13写道: > Send me views.py > > On Fri, 3 Jul 2020, 12:36 pm Mohsen Pahlevanzadeh, < > m.pahlevanza...@gmail.com> wrote: > >> I don't have model.py for auth_user. >> >> On Friday, July 3, 2020 at 11:10:17 AM UTC+4:30, RANGA BHA

Re: no-referer CSRF error occured in only Edge

2020-07-09 Thread Hella Nick
Wow Seong Gyu Choi 于2020年7月9日周四 下午9:48写道: > Django Web Page worked properly well with POST method action in Chrome, > Firefox. But No-refere CSRF error occurs only in Edge MS browser. > > I found someone with an error similar to the one below, and I used the > method I told you here but couldn't

Re: Best Django Open Source Project for Intermediate Django Learners

2015-09-01 Thread Nick Sarbicki
ps.google.com/d/msgid/django-users/d1ae4ad3-434a-461c-99b4-150aad26ccfd%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- - Nick -- You received this message because you are subscribed to the Google Groups &

Re: Debugging Django using Pycharm

2015-09-15 Thread Nick Sarbicki
her debug tool that too ok for me. > > Thanks and Regards, > > Prabhu Have you installed the community (free) version or the professional? The community version doesn't support Django, although it is still worth using. - Nick. - Nick On Tue, Sep 15, 2015 at 8:03 AM, Prabhu wr

Re: how to create a project in django in windows 7

2015-09-15 Thread Nick Sarbicki
work send any error messages you receive. Here are the formal instructions to install Django: https://docs.djangoproject.com/en/1.8/intro/install/ And here is the tutorial for getting started on a project: https://docs.djangoproject.com/en/1.8/intro/tutorial01/ They are both pretty good so give

Deploying a Django 1.9 project

2016-04-12 Thread Nick Jenkins
I've been developing a site with Django 1.9 with Python3 and I'm hitting a wall when trying to deploy it to a hosting service. I currently have a shared service plan through BlueHost and I'm having trouble getting everything to work right. In talking with BlueHost they stated they only support

How to Get Video to Play

2020-12-03 Thread Nick Sokol
Hi All, I am trying to play uploaded video on a django web app but I keep getting a white screen and audio. Does anyone know how to fix this? Also, is this a django issue or html issue? Thank you! -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Integrate a microphone in the Django app

2021-05-24 Thread Nick Sarbicki
hird party package to do the conversion for you e.g. https://github.com/Uberi/speech_recognition#readme - Nick ‪On Mon, May 24, 2021 at 12:40 PM ‫מוריה יצחקי‬‎ wrote:‬ > Hello everyone > I want to allow my app to receive input from a microphone > I would be happy for help on how to do

Re: convert python 3 to python2

2019-09-24 Thread Nick Sarbicki
I'm not convinced anyone could pay me enough to go back to Python 1... On Tue, Sep 24, 2019 at 1:32 PM Larry Martell wrote: > You can get anyone to do anything for enough money. > > On Tue, Sep 24, 2019 at 8:30 AM Deep Sukhwani > wrote: > > > > Thanks for the prompt reply. Did a quick cursory

Re: best option for Front End Design in Django

2019-09-26 Thread Nick Sarbicki
eb sites are not directly comparable. There are multiple ways of approaching converting a website into an app but most are relatively advanced. I would focus on what you are doing now before thinking about that journey. - Nick On Thu, Sep 26, 2019 at 11:50 AM Pengyu Cao wrote: > Hey, h

Can Django support chunked file uploads without a Content-Length header?

2019-10-02 Thread Nick Sarbicki
I'm working on a Django API which receives audio files and some extra POST data and then processes the file. This was initially in Flask, but Django suits the overall project better so we're migrating. However we've run into a snag. Currently the audio file is sent via node.js, with the node-fe

Re: Docker

2019-10-10 Thread Nick Sarbicki
Don't use git inside the container, this is not the standard way of doing things. Docker has its own guide for using django with compose. This works fine for a single server setup: https://docs.docker.com/compose/django/ - Nick On Thu, Oct 10, 2019 at 5:09 PM vineet daniel wrote: >

Re: Docker

2019-10-14 Thread Nick Sarbicki
om> | Linkedin > <http://in.linkedin.com/in/vineetdaniel> | Twitter > <https://twitter.com/vineetdaniel> > > > > > On Thu, Oct 10, 2019 at 10:13 PM Nick Sarbicki > wrote: > >> Don't use git inside the container, this is not the standard way o

Re: Docker

2019-10-14 Thread Nick Sarbicki
t; > Regards > Vineet Daniel > Cell : +918527565696 > Websites : Blog <http://vineetdaniel.blogspot.com> | Linkedin > <http://in.linkedin.com/in/vineetdaniel> | Twitter > <https://twitter.com/vineetdaniel> > > > > > On Mon, Oct 14, 201

Re: Django Rest Framework and Django allauth

2019-10-15 Thread Nick Sarbicki
custom solutions is not that time consuming. But if it's more basic authentication it should be fine. - Nick On Tue, Oct 15, 2019 at 12:06 PM Joseph Emeka wrote: > Can i use Django rest framework and Django allauth in the same project or > either of then at a time. Am building a p

Re: Microservice with django

2019-11-08 Thread Nick Sarbicki
There is not really anything that requires doing to make Django work with microservices or as a microservice. It is completely agnostic to your overall architecture. Just simply create a new django project for each microservice you want to create. There honestly is nothing else to it. - Nick

Re: How t do Login using Gmail, twtter or facebook

2019-11-11 Thread Nick Sarbicki
cs.io/en/latest/providers.html#google - Nick On Mon, Nov 11, 2019 at 9:32 AM Andréas Kühne wrote: > > https://simpleisbetterthancomplex.com/tutorial/2016/10/24/how-to-add-social-login-to-django.html > > Regards, > > Andréas > > > Den mån 11 nov. 2019 kl 10:27 skrev Balaji S

<    1   2   3   4   5   6   7   >