Re: Best way to run a shell script, using input value from Django?

2019-01-02 Thread Alex Heyden
So, a lot of this doesn't have much to do with Django, but I'm not sure how familiar you are with web server best practices in general, so apologies if some of this is remedial for you. If something takes two minutes to finish, you don't want it being handled on the request handler itself. Split

Re: Setting up environment variable

2019-01-02 Thread Jason
you need to add `DJANGO_SETTINGS_MODULE as an environment variable when setting your run configuration [image: Screen Shot 2019-01-02 at 9.05.01 PM.png] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Are distance lookups available for MySQL or not?

2019-01-02 Thread Jason
https://mariadb.com/kb/en/library/mysqlmariadb-spatial-support-matrix/ seems to be a good resource for mariadb gis functions, and as you can see, there's no listing for dwithin. so while there might be support for mysql, it probably doesn't extend to mariadb -- You received this message

No module named context_processors

2019-01-02 Thread Larry Martell
I am having an odd interment problem. I have an app which is deployed at 30 different sites. At one site only, and only intermittently, user will get the error 'No module named context_processors'. It may happen on a page that was previously accessed with no error and upon refreshing the same

Best way to run a shell script, using input value from Django?

2019-01-02 Thread Chris Robinson
Hello, I'm going to attempt to generalize my question to make this easier to answer. Lets say I have a simple terminal based shell script (e.g. multiply_by_two) that takes a number argument, then multiplies that number by 2, and returns the result into a result.txt file. I would enter

Best way to submit application cmd, then download a resulting file?

2019-01-02 Thread Chris Robinson
Hello, I'm going to attempt to generalize my question to make this easier to answer. Lets say I have a simple terminal based application (e.g. multiply_by_two) that takes a number argument, then multiplies that number by 2, and returns the result into a result.txt file. I would enter

Re: Are distance lookups available for MySQL or not?

2019-01-02 Thread Clara Daia
I wrote the query myself in case the library was messing it up and got the same error: self.assertEqual(MyModel.objects.filter( geopositionfield__dwithin=( Point(-25.427855, -49.279644), 0.00028321143293561684) ).count(), 1) Em qua, 2 de jan de 2019 às 16:33, Clara Daia

Are distance lookups available for MySQL or not?

2019-01-02 Thread Clara Daia
Hello, everybody I am using Django 2.1 with MariaDB 10.3. I have been trying to get the 'dwithin' lookup to work on a PointField, but I keep getting the following error: ... File "/usr/local/lib/python3.6/site-packages/django/contrib/gis/db/models/lookups.py" , line 74, in get_rhs_op

Installing and using django registration – backends

2019-01-02 Thread Yuval Bachrach
Installing and using django registration – backends The package is installed (pip) and migration is clean. Next steps at the documents: Adding to urls at urlpatterns but I get error messages (details below). So I am stacked at the very beginning. As a Django beginner, I would be happy to get

Re: Setting up environment variable

2019-01-02 Thread Kuber Sodari
Can you screenshot and paste the error shown during running your project? On Wednesday, 2 January 2019 22:30:56 UTC+5:45, Surajeet Das wrote: > > Well , I am really stuck on this setting of environment variable > :'DJANGO_SETTINGS_MODULE' . When I run my project in pycharm , an error is >

Setting up environment variable

2019-01-02 Thread Surajeet Das
Well , I am really stuck on this setting of environment variable :'DJANGO_SETTINGS_MODULE' . When I run my project in pycharm , an error is raised showing that the environment variable isn't yet set . So , anyone please help me out on this. In which python file do I set this variable and how

Re: OneToOneField value must be a model instance, not a value?

2019-01-02 Thread Kuber Sodari
>From official documentation "*to_field* is the field on the related object that the relation is to. By default, Django uses the primary key of the related object. If you reference a different

OneToOneField value must be a model instance, not a value?

2019-01-02 Thread regtech
Hello everyone! I am a junior who is first using OneToOneField, I found that the value which is giving to the field only could be a instance of the related model, can't be a value of the field which is specifed by the "to_field" ( else django will raise excption ). In the other word,

Re:

2019-01-02 Thread Kuber Sodari
Seems like your local server is not running. See the error on terminal or cmd from where you are trying to start the server. You must see some error there. May be pasting the screenshot of that error might be helpful to indicate what is wrong here. See the terminal error and try to resolve it

Re: Error

2019-01-02 Thread Kuber Sodari
Hmm, I suspect your issue is with queryset there since it says Matching Query Doesn't exist. This error always tend to say you that your django orm query is not proper, it has certain fields or style that you can not perform in the way you have written. First of all, please check if your

Re:

2019-01-02 Thread Alex Kimeu
Is your server running? On Wed, Jan 2, 2019 at 6:30 PM Joseph Gichuki wrote: > > > Here it is > > Sent from Mail for > Windows 10 > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: Can i build mobile app by django rest framework and restApi???

2019-01-02 Thread Nebojsa Hajdukovic
yes you can make rest api and than frontend in ionic angular (like I have done) or even flutter. сре, 2. јан 2019. у 13:54 Andréas Kühne је написао/ла: > Yes - you can use DRF to create the backend for the app. However you would > need to create the app in a platform specific way (via Xcode on

[no subject]

2019-01-02 Thread Joseph Gichuki
Here it is Sent from Mail for Windows 10 -- 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: Error

2019-01-02 Thread Bob Gailer
On Jan 2, 2019 2:03 AM, "Suresh" wrote: > > def chapter(request, course_name=None, slug=None): > place = Chapter.objects.get(course__course_name=course_name, slug=slug) > > add_link_form = AddLinkForm(request.POST or None) > add_txt_form = AddTxtForm(request.POST or None) >

Re: Help with djangoproject

2019-01-02 Thread abel otugeme
There must be an error that why the server isn't running. Send a screenshot of cmd and the site On Jan 2, 2019 3:12 PM, "Harryxon Ndegwa" wrote: > > hi joseph, > send a screenshot of the error and the code u have written so far to get the error > > #%£& > > On Wed, 2 Jan 2019 5:10 pm Joseph

Re: Help with djangoproject

2019-01-02 Thread Harryxon Ndegwa
hi joseph, send a screenshot of the error and the code u have written so far to get the error #%£& On Wed, 2 Jan 2019 5:10 pm Joseph Gichuki Hi am new to Django and I can't get past the Django localhost :8000 to > advance my project to the next step . I keep getting an error: localhost >

Help with djangoproject

2019-01-02 Thread Joseph Gichuki
Hi am new to Django and I can't get past the Django localhost :8000 to advance my project to the next step . I keep getting an error: localhost refused to connect. what should I do ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: DetailView only works with slug and primary key?

2019-01-02 Thread Andréas Kühne
Hi, The DetailView has a method "get_object" that you can override and use to return the object via any source you choose. You can also override the pk_url_kwarg or slug_url_kwarg properties on the DetailView to retrieve the information from the url in any way you want. Regards, Andréas Den

Re: Can i build mobile app by django rest framework and restApi???

2019-01-02 Thread Andréas Kühne
Yes - you can use DRF to create the backend for the app. However you would need to create the app in a platform specific way (via Xcode on iOS for example) Regards, Andréas Den ons 2 jan. 2019 kl 13:23 skrev Tomas Adel : > If i build web via blog can i use restfulApi and django rest framework

Re: How to deploy Django Python Webapp with Windows10?

2019-01-02 Thread computer engineering Forum
Hi, any link to a well designed python django website, I am a beginner and I want to build a good site with login also...anyone with git directory On Jan 2, 2019 2:11 PM, "Joel Mathew" wrote: > Also why are you attempting to deploy it online from your laptop. An > online application needs to

Can i build mobile app by django rest framework and restApi???

2019-01-02 Thread Tomas Adel
If i build web via blog can i use restfulApi and django rest framework to build mobile app ??? -- 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: Connecting ios app to django as backend And represent the location data in maps.

2019-01-02 Thread mazz ahmed
:D On Wed, Jan 2, 2019 at 3:20 PM Achyut Pandey wrote: > > Hello guys i am working on project named “real time user tracking system” > using django as a backend. The problem i faced to build this project is how > can > i get data ( about location ) sent from ios app to my django site in real >

Re: How to deploy Django Python Webapp with Windows10?

2019-01-02 Thread Joel Mathew
Also why are you attempting to deploy it online from your laptop. An online application needs to be.. well, online, all the time. That's the function of a server. You dont normally deploy from a laptop, unless you have a specific need to do so. If it's for a client, definitely a big no-no. Use a

Re: How to deploy Django Python Webapp with Windows10?

2019-01-02 Thread Joel Mathew
Windows 10 is not designed to be a server. What is your issue in deploying in Ubuntu or Debian? Sincerely yours, Joel G Mathew On Tue, 1 Jan 2019 at 02:14, gian castillo wrote: > Hi, > I built a webapp with django python and It's done. Now I want to deploy It > online, It's just a

Re: Posting data from templates to views.py without using forms.

2019-01-02 Thread Osezele Orukpe
I guess you not using a frontend framework like reactJs or AngularJs. So i would suggest you look into AJAX. this could be done easily using jQuery's ajax function On Tuesday, January 1, 2019 at 3:46:53 PM UTC+1, Surajeet Das wrote: > > Well , I want to post data from templates to views.py by

Re: Itterate with Include Tag

2019-01-02 Thread Osezele Orukpe
Hi Shazia, Can you post the included file? On Saturday, December 29, 2018 at 11:51:29 PM UTC+1, Shazia Nusrat wrote: > > Hi Guys, > > I have a form created from foreignkey model. I have used "include" with > jinja for displaying my fields. But I don't know how to iterate through and > include

DetailView only works with slug and primary key?

2019-01-02 Thread Osezele Orukpe
I would like to know if django DetailView can be used with other fields apart from slug and primary key? -- 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

Connecting ios app to django as backend And represent the location data in maps.

2019-01-02 Thread Achyut Pandey
Hello guys i am working on project named “real time user tracking system” using django as a backend. The problem i faced to build this project is how can i get data ( about location ) sent from ios app to my django site in real time and shows those longitude and latitude values in maps to

Re: How to deploy Django Python Webapp with Windows10?

2019-01-02 Thread Kuber Sodari
My suggestion would be pythonanywhere.com Its free and reliable for the testing or demo purposes. On Tuesday, 1 January 2019 02:29:10 UTC+5:45, gian castillo wrote: > > Hi, > I built a webapp with django python and It's done. Now I want to deploy It > online,

Get the list of related objects in Django

2019-01-02 Thread Tessnim Zrayga
I have 3 models: class Node(models.Model): ID = models.DecimalField(max_digits=19, decimal_places=10) name = models.CharField(default='node', max_length=32) connexion = models.CharField(max_length=255) # Many2one fields | Foreign keys: firm = models.ForeignKey('firme.Firme',