Django Channels with Queue (Lobby) Manager

2023-07-11 Thread Alex R
Hello dear Community! I need help with Django channels and Websockets (i guess) for an application I am building. The project is online Chess game with Django as a backend and vanilla JavaScript (ajax, jQuey and some bootstrap). We are using custom chess engine written in python. Previously

Re: Accessing my local backend

2023-03-20 Thread Vanitha R
Thanks On Mon, Mar 13, 2023, 3:32 AM Carlos André Dantas de Lima < eucan...@gmail.com> wrote: > Have you chose url in settings, allow tô access and you try access with > mobile deixe in other address or port > > Em dom, 12 de mar de 2023 14:42, Donald KANTI > escreveu: > >> Hey you should start

Please i need help in creating a Login page with Django

2023-01-18 Thread Michael R. KOOMSON
I am trying everything possible to create a basic login page with Django., i have tried so many videos and online tutorial, but still can't make anything meaningful out of it. Can anyone please take me through a systematic process please, since i am new here and want to take Django to be my fri

Re: How to use choices in model field

2022-11-03 Thread Aaryan R Soni
the end should make it work > > El El mié, 2 de nov. de 2022 a la(s) 10:23, Aaryan R Soni < > aaryanrson...@gnu.ac.in> escribió: > >> Okay, but still the problem is that how do I set the value of status >> field, as I have written in the code, verification.status = '

Re: How to use choices in model field

2022-11-02 Thread Aaryan R Soni
se square blackest [ ] > > status_choices=(('Unverified','Unverified'),('Verified','Verified')) > > On Wed, Nov 2, 2022, 5:52 PM Aaryan R Soni > wrote: > >> Hey guys, i am facing some issues using choices in models.CharField. I am >> creating a

How to use choices in model field

2022-11-02 Thread Aaryan R Soni
Hey guys, i am facing some issues using choices in models.CharField. I am creating a model which has username and status, where status is my choice field. it has 2 values, 'Unverified' and 'Verified'. class user_stutus(models.Model): status_choices=[('Unverified','Unverified'),('Verified','V

how to connect mongodb in my project,

2022-10-26 Thread pythoon r
please help me,i've one requirement (project) django with mongodb.how to connect mongo to django .i was tried some method i cant connect how to config mongoengine,django-mongo-engine in my settings.py file -- You received this message because you are subscribed to the Google Groups "Django use

Re: Job Request As A Software Developer

2022-09-01 Thread R V Tulasi
My company recruting Pls share cv to 9966342766 through whatsapp Python developer vacancy On Thu, Sep 1, 2022, 1:09 PM Onjomba Felix wrote: > Hae, > I am humbly requesting if you have any job or referral to a job just tell > me bellow is my Cover Letter and CV. > [image: WhatsApp Image 2022-08-3

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-26 Thread Carlos R. Pacheco F.
The solution is to use select2 with ajax El vie, 25 feb 2022 a la(s) 19:58, Jacob Greene (jacobgreene1...@gmail.com) escribió: > If you're using model choice fields, it's very likely you are making an > SQL query for each form set. It should be pretty obvio

Django build file reg.

2021-12-23 Thread kavin kumar R
Hi everyone, *I did a project in django for a business motive and I want to sold it with out sorce code any one can help me to build a django a project wich can't be reverse engineered..* Thankyou!!. -- You received this message because you are subscribed to the Google Groups "Django use

How Do I Authorise user using token

2021-10-06 Thread M R
Hi DRF Team, I have created tokens but i don't know how to use it for authentication. Every web page is showing in postman in google. how do i use headers in url Thanks Madhusudhan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Beginning project of displaying graphical information from a sql database

2021-04-06 Thread J R
Hello, Fairly new to Django, I've been through a few tutorials and understand the basics. My goal is to create a page which shows a defined asset's value over time compared to various social metrics tying to that asset (volume of reddit comments, twitter posts, ect.). The user will input what

Re: Django/python free Training

2020-12-26 Thread Veena R
Interested On Sat, 26 Dec, 2020, 10:24 am Madhav Nandan, wrote: > Which version you are installing?, I think I can help you with that. > However, This is not a relevant reply you posted for *python training.* > > On Mon, Dec 21, 2020 at 7:41 PM F Fariborzi Araghi < > f.fariborzi.ara...@gmail.com

Re: Align Two buttons in a TD

2020-10-24 Thread Jason R
I'd wrap your td element in a container and display it as a flex element. That will probably conflict with bootstrap though. On Sat, Oct 24, 2020 at 7:27 PM Walter Randazzo wrote: > Sorry, I forgot to attach the file. This is how the template looks like > now: > > El sábado, 24 de octubre de 202

Re: "pytest --doctests-modules" AlreadyRegistered error

2020-07-31 Thread Dave R
I figured this out. I'm using Cookiecutter-Django, which puts a __init__.py for whatever reason in the root directory and this confuses pytest. If you delete this __init__.py, everything works fine. On Friday, July 31, 2020 at 8:53:39 PM UTC-4 Dave R wrote: > I am using doctests vi

"pytest --doctests-modules" AlreadyRegistered error

2020-07-31 Thread Dave R
eclare an explicit app_label and isn't in an application in INSTALLED_APPS. == short test summary info == ERROR main/admin.py - django.contrib.admin.sites.AlreadyRegistered: The model PoolType is already r..

Re: Channels: can ApplicationCommunicator get events from my channel layer?

2020-07-28 Thread Amandeep R
Hey Chris, Did you ever figure this out? I'm running into the exact same issue. On Sunday, June 9, 2019 at 1:14:52 AM UTC-4, Chris wrote: > > I am writing an integration test that loads a page, which somewhere > internally calls get_channel_layer().send() to my ChannelNameRouter. I want > the

Question about django.utils.autoreload

2020-07-20 Thread Dave R
Hello, I'm trying to figure out how to rebuild my React.js project (with Django backend) and relaunch the Django dev server if a React.js file changes. The code below works, but it rebuilds React even if the only code changes are in Django. Can anyone suggest how to solve this problem? import

Django package auto-installation

2020-07-19 Thread Dave R
My new package: https://github.com/pandichef/indjections The basic idea: Installing third party Django packages should be one-line of code. I'm looking for feedback and/or contributors. Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group

Django as an authentication server

2020-06-28 Thread Dave R
A few weeks ago on this group, I asked for suggestions on how to enable logging into one Django app from another Django app. I didn't love the answers I got, so I rolled out my own solution: https://github.com/pandichef/djangito I'd love to get some feedback on this and/or find contributors to

Re: Is there a package that enables one Django project to authenticate via a second Django project?

2020-06-25 Thread Dave R
can > use the user interface from the remote user. > > https://docs.djangoproject.com/en/3.0/howto/auth-remote-user/ > > The reason I wouldn't use open id connect is because you still need a > local user object for each project in that case. > > Regards, > > Andr

Is there a package that enables one Django project to authenticate via a second Django project?

2020-06-25 Thread Dave R
I keep running into this problem and started working on a custom solution... but before I spend hours on this, I want to confirm that such a package/solution doesn't already exist. I was working on a large project last year that involved a single set of users and many small applications. I mad

Re: Page 404 error after running Django server

2020-05-04 Thread R D Saini
path("welcome/",views.welcom), On Mon 4 May, 2020, 11:42 PM 'Amitesh Sahay' via Django users, < django-users@googlegroups.com> wrote: > There are lots of issues with urls.py > Please go through the django documents on how to write urls.py > > Sent from Yahoo Mail on Android >

Unable to receive Ajax GET data in views.py

2020-03-14 Thread Sundaresan R
Hi, In a template I have two ajax calls (one POST, one GET) corresponding to "Save" button and a "Go Back" button which are on two different forms. While the POST data on clicking "Save" gets passed to url1, GET data on clicking "Go Back" is being received in url2 simply as False instead of valid

Re: Hosting a django website

2020-01-28 Thread Mario R. Osorio
I prefer digital ocean but by whatever you choose by any means, avoid cpanel. On Saturday, January 25, 2020 at 1:42:13 PM UTC-5, Perceval Maturure wrote: > > dear all > 1.what is the best way to host a django website on a shared host that you > are not sudo? > 2.is this possible? > 3. any ideas?

Re: Full Stack Developer (Python/Django) position requirement for US GC/Citizen/Can Citizen

2020-01-05 Thread R D SAiNi
Yes i am interested this job in India On Fri 3 Jan, 2020, 11:05 PM Yash Garg, wrote: > For a large multi billion dollar Publishing house in New York, client > needs a Full Stack Django Developer with 3+ years of solid Python/Django > experience > > Scope: > >- Code refinement/linting/unit te

Re: How to create Graphs and charts on Relational ORM

2019-10-27 Thread Abhiram R
ing <https://github.com/pandas-profiling/pandas-profiling>. I'm guessing it'll do pretty much exactly what you want over dataframes. Your task will only be to load your data into a dataframe. Thanks Abhiram R <http://abhiramr.com> > > Query is to perform on multiple mod

Re: Anyone used RENDER product for hosting?

2019-10-11 Thread Mario R. Osorio
I like Digital Ocean On Tuesday, October 8, 2019 at 5:33:27 AM UTC-4, ram.mullapudi wrote: > > > Hello, > > I'm looking for cheaper, secure and reliable way to host my website? The > site is being developed on DJango FWK. We are currently on GCP and also > reviewed other popular vendors too. I

Re: django calendar app

2019-09-27 Thread Mario R. Osorio
HTH: https://djangopackages.org/grids/g/calendar/ On Thursday, September 26, 2019 at 10:48:13 AM UTC-4, Perceval Maturure wrote: > > > Dear all > > i am looking for a django calendar app/package compatible with python 3.7 > , django 2.1 and django cms 3.6.0. > > Any ideas, please let me know

Re: Python +django

2019-09-10 Thread Mario R. Osorio
I must agree that video tutorials are harder to follow, specially if and when they are if at least a bit outdated. I used to hate them however; I've learned to appreciate them specially because of one reason: *YOU CANNOT COPY AND PASTE.* Written tutorials don't help you go thru the full learnin

Re: how to pass user input into raw sql query ?

2019-09-07 Thread Mario R. Osorio
*Do not use string interpolation* as proposed by Bhoopesh!!! Take a look at: - SQL injection - SQL injection protection

Re: Chat

2019-09-06 Thread Mario R. Osorio
Tienes muchas opciones: - TUTORIAL: Real-time chat with Django, Twisted and WebSockets – Part 1 - Creating a chat with Django Channels

Re: How can i share one Database Sqlite between 2 app on pythonanywhere

2019-09-04 Thread Mario R. Osorio
You have at least 2 possibilities, depending on your exact needs: 1- The preferred method is to Import the models from the app they reside at, like in: *from foo_app.models import bar_model* 2- You could also have the models you need to share created at the project level thus making th

Re: confusing about running some codes in django

2019-08-29 Thread Mario R. Osorio
That code is meant for you to type it in the python console however, you could also include it pretty much anywhere in your code. On Wednesday, August 28, 2019 at 9:15:20 AM UTC-4, Vahid Asadi wrote: > > Hi . > when i read the django docs,it suggested that running some code but it > does not n

Re: How can I switch AUTH_USER_MODEL for each application?

2019-08-27 Thread Mario R. Osorio
I think this is what you're looking for: https://docs.djangoproject.com/en/2.2/topics/db/multi-db/ HTH! On Monday, August 26, 2019 at 10:12:06 AM UTC-4, Sim wrote: > > https://docs.djangoproject.com/en/2.2/ref/settings/#databases > > DATABASES in settings.py is a dict() and use database_rout

Re: UI for python windows applications

2019-08-22 Thread Mario R. Osorio
You might want to take a look into Kivy (https://kivy.org/ ) HTH On Wednesday, August 21, 2019 at 1:46:57 PM UTC-4, ARAVIND BALAKRISHNAN wrote: > > Can anyone suggest me any modern UIs for python application in windows > other than electron > -- You received this me

Re: Rails to Django Application Architecture Question

2019-05-27 Thread Steve R
Would it be correct to think of an app being basically one object equivalent to a single medium-to-complex class? On Friday, May 24, 2019 at 3:30:40 PM UTC-5, Steve R wrote: > > Thank you! > > On Friday, May 24, 2019 at 3:08:33 PM UTC-5, Alex Heyden wrote: >> >> What

Re: Rails to Django Application Architecture Question

2019-05-24 Thread Steve R
logic off into its own > application if I thought that the core ideas of users and projects might > feed some other bit of logic elsewhere, but YAGNI may apply. > > On Fri, May 24, 2019 at 12:19 PM Steve R > > wrote: > >> Hi All - >> >> I am a new Django user,

Rails to Django Application Architecture Question

2019-05-24 Thread Steve R
Hi All - I am a new Django user, coming from RoR. I am having some difficulty wrapping my head around the whole 'apps' thing. Here is my specific use case, and I would appreciate feedback on if I am thinking about this correctly, and if not, how to think about it. I have a project management

Re: No puedo generar qr en django

2019-05-21 Thread Mario R. Osorio
Osman, Un codigo QR no es otra cosa que una forma compacta de representar informacion. Sin embargo, existen varios tipos de codigos QR. Lo primero que tienes que hacer es seleccionar que es lo que vas a representar con el codigo; podria ser simplemente el identificador unico del empleado o, de

Re: Generate CUID Client Side

2019-05-17 Thread Mario R. Osorio
This question is OT however; *cuid *being a js library, what you have to do is have your templates include the necessary libraries and make use of them. On Thursday, May 16, 2019 at 9:09:13 AM UTC-4, Timothy Cook wrote: > > I have a project where I want to generate a CUID client side to send

Re: More controls on createsuperuser

2019-04-30 Thread Mario R. Osorio
is a waste of time. Dtb/Gby === Mario R. Osorio B.A.S. of Information Technology Web page: *http;//mario.osorio.solutions <http://http%3B//mario.osorio.solutions>* Email: *mario@osorio.solutions* *Just Choose Python!* <http://www.gentoogeek.org/files/choose_python.pdf> *SQL prog

Re: Create project in windows, but run it in Ubuntu

2019-03-26 Thread Mario R. Osorio
I'm sure you won't regret it. Dtb/Gby === Mario R. Osorio *Just Choose Python!* <http://www.gentoogeek.org/files/choose_python.pdf> *SQL programmers don't die, they just ROLLBACK the TRANSACTION.* On Tue, Mar 26, 2019 at 3:04 PM Chafid Ahmad wrote: > Thanks ever

Re: Create project in windows, but run it in Ubuntu

2019-03-26 Thread Mario R. Osorio
Of course you can however, IMHO; it is better to use whatever is closest to the real McCoy. Two options I can think of are: 1) Use Docker images. It is not very hard to work with Docker images however, it does add a bit of difficulty to your workload. 2) Use a Linux image in VirtualBox. It will

Re: How to display file&folder tree using Django. Help, please!

2019-02-08 Thread Mario R. Osorio
If you're just looking into just presenting trees, you might want to check How TO - Tree View (https://www.w3schools.com/howto/howto_js_treeview.asp) or Bootstrap Tree View (https://github.com/jonmiles/bootstrap-treeview, http://jonmiles.github.io/bootstrap-treeview/) If you are looking for a

Re: Django payment through different methods

2019-01-22 Thread Mario R. Osorio
Take a look here: https://djangopackages.org/grids/g/payment-processing/ On Monday, January 21, 2019 at 7:36:23 PM UTC-5, Bikash Saud wrote: > > I'm trying to payment from different methods like paypal, or other way. I > did not have idea please help me > -- You received this message because yo

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Mario R. Osorio
I'm not an expert, but this article seems like a good start: How to Configure Multiple Databases in Django the Simple Way https://strongarm.io/blog/multiple-databases-in-django/ On Monday, January 7, 2019 at 1:49:15 PM UTC-5, Sanderson Carmona wrote: > > Good afternoon, > > I'm using the latest v

Re: simple boy start learn python

2019-01-07 Thread Mario R. Osorio
Sorry, I forgot to include the link for the book: https://www.obeythetestinggoat.com/ Dtb/Gby === Mario R. Osorio B.A.S. of Information Technology A.S. of Computer Programming and Analysis Web page: *http;//mario.osorio.solutions <http://http%3B//mario.osorio.solutions>* Email:

Re: simple boy start learn python

2019-01-07 Thread Mario R. Osorio
These are some of the best resources I've ever found on the subject: - - Obey the Testing Goat! (You can buy they book or read it online for free) - TaskBuster Django Tutorial (might be a bit outdated but I'd still go thru it)

Re: Databases configuration

2018-12-07 Thread Chuck R
Hi, if you're using python venv, try install mysqlclient(pip install mysqlclient) and rerun the local server. On Thu, Dec 6, 2018, 9:38 AM C. Kirby Did you start your mysql process? > > On Thursday, December 6, 2018 at 9:33:37 AM UTC-5, Cool Smith wrote: >> >> Hi everyone, >> >> I am new to Djang

Databases configuration

2018-12-07 Thread Chuck R
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mysql', 'USER': 'root', 'PASSWORD': 'root', 'HOST': '', 'PORT': '3306' } } This should work for you. You were using the wrong port.The port you were using is for postg

Re: Trigger actions independently of url request

2018-10-29 Thread Mario R. Osorio
I'm far from being an expert but I think yours is a rather simple operation that needs to be executed every n minutes. I think that in the case you're explaining, Celery is an overkill. Why not go with a cron job? You might want to create a combination of bash and python scripts to do exactly w

Re: Django Produces Python?

2018-06-12 Thread Mario R. Osorio
I've tried multiple managed hosting and they all have limitations that will eventually go against your expansion needs. The best example I can think of is the fact that in most of these services you cannot compile, and some of python's libraries do require compiling. I favor Virtual Private Ser

Re: what does the below mentioned error means and how do i resolve this error.something is wrong with my admin.py file.Please comment:

2018-06-08 Thread Mario R. Osorio
Looks like you skiped a huge part of the tutorial. you might to go back... On Thursday, June 7, 2018 at 11:08:15 AM UTC-4, Avitab Ayan Sarmah wrote: > > In windows powershell: > > ERRORS: > : (admin.E108) The value of > 'list_display[0]' refers to 'question_text', which is not a callable, an > a

Re: How do you deal with two third party apps with the same App label?

2018-05-21 Thread Mario R. Osorio
plications/#for-application-users > > I believe this would solve the ImproperlyConfigured exception as on your > settings.py on your INSTALLED_APPS you would have the apps with different > names. > Hope it helps! > > On Saturday, May 19, 2018 at 10:54:02 PM UTC-3, Mario R. Osori

How do you deal with two third party apps with the same App label?

2018-05-19 Thread Mario R. Osorio
Hello everyone, In Django 2.0.5; I want to use python-twitter and allauth's twitter provider and both these apps use the same App label which results in the *django.core.exceptions.ImproperlyConfigured: Application labels aren't unique* error I have searched the internet and found no solutio

Re: Integrating cryptoassets.core library in django

2018-05-02 Thread Mario R. Osorio
You need to give more details, such as: - Did you PIP the application? - Did you remember to add it to INSTALLED_APPS? On Wednesday, May 2, 2018 at 7:10:31 AM UTC-4, Hitesh Goyal wrote: > > Hi, > I am trying to configure the cryptoassets.core library for bitcoin > applications using

send / receive data securely from a wifi module... how many steps?

2017-12-15 Thread R design
I've built a couple of basic django projects and would now like to add User Authentication and SSL. The objective is to be able to securely send data to/from a WIFI module (ATWINC1500) <=> Django's database through normal http channels (no need for anything fancy). Can user login be compressed

Re: ModelAdmin Media JS file order issue in Django 2.0

2017-12-10 Thread Marc R
; using Python ? > > Etienne > > Le 2017-12-10 à 09:30, Marc R a écrit : > > I have this in my model: > > class Media: > js = ( >* '/static/plugins/codemirror/lib/codemirror.js',* > '/static/plugins/codemirror/mode/html

ModelAdmin Media JS file order issue in Django 2.0

2017-12-10 Thread Marc R
I have this in my model: class Media: js = ( * '/static/plugins/codemirror/lib/codemirror.js',* '/static/plugins/codemirror/mode/htmlmixed/htmlmixed.js', '/static/plugins/codemirror/addon/fold/foldcode.js', '/static/plugins/codemirror/addon/fo

How can i use live reloader in django. Please can anyone help me?

2017-11-30 Thread Ashok R
How can i use live reloader in django. Please can anyone help me? -- 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 p

Re: Setting The Admin Login.

2017-02-13 Thread Steve R Burrus
We;ll Tim I like any other Django newb ie just wanna be able to go into the Django admin like I clearly remember doing with past versions of Django. Is there any more advice you can give me for this problem?  On Monday, February 13, 2017 6:27 PM, Tim Graham wrote: I'm not sure what y

Re: Setting The Admin Login.

2017-02-13 Thread Steve R Burrus
I am sorry Tim but I checked oiut both "creat esuperuser" and "changepassword" commands but  it did no good! Can you please give me a more detailed solution? On Monday, February 13, 2017 3:42 PM, Tim Graham wrote: I guess you're looking for the createsuperuser command: https://docs.

Limiting choices in a lookup by exclusion

2017-01-31 Thread Gordon R. Burgess
I have this code, and with Django 1.10 it works as expected: class Location(models.Model): name = models.CharField(max_length = 32, unique = True) street = models.CharField(max_length = 32) detail = models.CharField(max_length = 32, blank = True, null = True) city = models.CharFie

Re: Why was Roberto Rosario silently removed from the Django Software Foundation?

2016-11-13 Thread Mario R. Osorio
*puts on DSF's Outsider hat* (ooops, hes's an outsider anyways) FROM MY PERSPECTIVE AND THE LITTLE DATA I COULD COLLECT: Mr Rosario might just be going through a Morphine down because of the medical procedure he is going through (been there myself!). Some people just have a very bad time out of

Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Mario R. Osorio
HOO. Dtb/Gby === Mario R. Osorio A.S. of Computer Programming and Analysis Web page: *http;//mario.osorio.solutions <http://http%3B//mario.osorio.solutions>* Email: *mario@osorio.solutions* *Just Choose Python!* <http://www.gentoogeek.org/files/choose_python.pdf> “If I had asked pe

Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Mario R. Osorio
I cannot understand is why would you need django for admin, but use some other standalone (desktop?) application for everything else. You should try and stay either on the django or on the standalone application. If after further analysis you still think you need both, then I'd use django, alo

Re: Deploy on Heroku Error

2016-10-22 Thread Aline C. R. Souza
specific modifications? > > Regards, > Constantine C. > > On Fri, Oct 21, 2016 at 1:14 PM, Aline C. R. Souza > wrote: > >> Hello, Constantine, >> >> I have already followed this article and using `heroku local` the app >> runs fine. However, some thi

Re: Deploy on Heroku Error

2016-10-21 Thread Aline C. R. Souza
egards, > Constantine C. > > On Fri, Oct 21, 2016 at 8:39 AM, Antonis Christofides < > ant...@djangodeployment.com > wrote: > >> Hello, >> >> Link to the repo: https://github.com/alinecrsouza/django-blog-app >> >> >> that repo only contains the blog app.

Re: Deploy on Heroku Error

2016-10-21 Thread Aline C. R. Souza
? > > Regards, > > Antonis Christofideshttp://djangodeployment.com > > On 2016-10-20 22:49, Aline C. R. Souza wrote: > > Hello everybody, > > I am catching an error on trying to deploy my app on heroku. This is the > traceback: > > File "/app/.he

Deploy on Heroku Error

2016-10-20 Thread Aline C. R. Souza
Hello everybody, I am catching an error on trying to deploy my app on heroku. This is the traceback: File "/app/.heroku/python/lib/python3.5/site-packages/polls/admin.py", line 3, in 2016-10-20T18:42:46.734824+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/importlib/__init__.py

Re: HELP - Django variable in style (width) attribute

2016-10-20 Thread Aline C. R. Souza
outubro de 2016 22:28:38 UTC-3, Aline C. R. Souza escreveu: > > Hello Guys, > > favorite > <http://stackoverflow.com/questions/40065604/django-variable-in-style-width-attribute#> > > Why the template tag call {% get_percentage question.pk choice.pk %} > works inside

Re: Custom Admin Command

2016-10-16 Thread Mario R. Osorio
Thanks a lot for your help Dylan, Right after writing I noticed my mistake, I was naming the folder my_app/management/command I renamed it my_app/management/commands and voila!. it worked like a charm. Dtb/Gby === Mario R. Osorio A.S. of Computer Programming and Analysis Web page: *http

Re: Custom Admin Command

2016-10-16 Thread Mario R. Osorio
By the way, there are *__init__.py* files in both my_project/my_app/management/ and my_project/my_app/management/command folders ... On Sunday, October 16, 2016 at 9:58:25 PM UTC-4, Mario R. Osorio wrote: > > I am trying to implement a custom admin command. The class is loca

Custom Admin Command

2016-10-16 Thread Mario R. Osorio
I am trying to implement a custom admin command. The class is located at mt_project/my_app/management/command/my_command and looks like this: class Command(BaseCommand): help = 'This is my command' def handle(self, *args, **options): ... My app is included in Installed_apps. I think I'v

HELP - Django variable in style (width) attribute

2016-10-15 Thread Aline C. R. Souza
Hello Guys, favorite Why the template tag call {% get_percentage question.pk choice.pk %} works inside the span tag, but doesn't work in style (width) attribute? What is wrong? {% for choice in question.c

Re: NoReverseMatch Error using Django + Haystack + Elasticsearch

2016-10-15 Thread Aline C. R. Souza
time to build test app to check my idea. > > You can easily set up a break point and check what are the posts inside > your `post_search` view function. > > Regards, > Constantine C. > > On Sat, Oct 15, 2016 at 12:48 AM, Aline C. R. Souza > wrote: > >> Hello ever

NoReverseMatch Error using Django + Haystack + Elasticsearch

2016-10-14 Thread Aline C. R. Souza
Hello everybody, I am having a issue using Django + Haystack + Elasticsearch to perform a website search. I made a question on StackOverflow, but I had no satisfatory answer. The problem is in this line: by {{ post.author }} post.author.pk works well when called by several views, but it is n

Re: Add rows in migrations?

2016-10-05 Thread Mario R. Osorio
You can do that with fixtures: https://docs.djangoproject.com/en/1.10/howto/initial-data/ On Tuesday, October 4, 2016 at 7:21:07 PM UTC-4, Victor Porton wrote: > > After generating DB scheme, I need to add two rows with certain data to > certain table. > > How to do it? > > Can it be handled w

Re: [Help] Advanced tutorial: How to install my Python package with Virtualenv

2016-09-27 Thread Aline C. R. Souza
Hi everybody, Pip was working, but I did not know how to use it. Now, I figured out. Inside the project directory: pip install ../django-polls/dist/django-polls-0.1.zip Worked fine, the app is running. Thank you, guys. Em terça-feira, 27 de setembro de 2016 08:21:54 UTC-3, Aline C. R

Re: [Help] Advanced tutorial: How to install my Python package with Virtualenv

2016-09-27 Thread Aline C. R. Souza
r django-polls/dist outside of my project directory? I think my problem maybe is just about localization of the files. I am little bit lost. Em terça-feira, 27 de setembro de 2016 08:21:54 UTC-3, Aline C. R. Souza escreveu: > > Hello Guys, > > I need some help to install my Python packa

Re: [Help] Advanced tutorial: How to install my Python package with Virtualenv

2016-09-27 Thread Aline C. R. Souza
r django-polls/dist outside of my project directory? I think my problem maybe is just about localization of the files. I am little bit lost. Em terça-feira, 27 de setembro de 2016 08:21:54 UTC-3, Aline C. R. Souza escreveu: > > Hello Guys, > > I need some help to install my Pyt

Re: [Help] Advanced tutorial: How to install my Python package with Virtualenv

2016-09-27 Thread Aline C. R. Souza
der django-polls/dist outside of 'mysite' directory? I think my problem maybe is just about localization of the files. I am little bit lost. Em terça-feira, 27 de setembro de 2016 08:21:54 UTC-3, Aline C. R. Souza escreveu: > > Hello Guys, > > I need some help to install my Py

[Help] Advanced tutorial: How to install my Python package with Virtualenv

2016-09-27 Thread Aline C. R. Souza
Hello Guys, I need some help to install my Python package with virtualenv. I follow the 'Advanced tutorial: How to write reusable apps' and moved the polls directory out of the project. Now I want to install my package using virtualenv and pip, but I don't know how. Consider I am inside of my

Getting AttributeError: type object 'RunPython' has no attribute 'noop' error

2016-09-26 Thread Arundas R
My django version is 1.7.11. While migrating I get an error as described. What might be the possible reason? -- 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 dj

Re: Installing Django Problem.

2016-07-04 Thread Steve R Burrus
Wel;l everyone I guess that I have met with success as far as connecting to   the Django server a nd configuring the admin BUT there remains A LOT of things about Django I don't know yet.    On Monday, July 4, 2016 2:31 PM, ludovic coues wrote: I could ask you what error you get when ru

Re: HTTP2 Server Push with Django?

2016-06-28 Thread Mario R. Osorio
Here are some resources: - Django Push HTTP Response to users - Django Packages - django-push-notifications

inventory in Django

2016-04-08 Thread Becka R.
Hi, Sorry if this question seems basic, but I'm having trouble figuring out the best way to approach this on a high level. I'm at the beginning stages of building an ecommerce site,. Inventory changes regularly, and photos and descriptions need to be easy to update for my client. Is this an a

Re: Looking for ways to improve my skills

2016-04-03 Thread Mario R. Osorio
Hi Devrhoid, I'm not an expert myself but, as with anything else; it is nothing but your own needs that will improve your knowledge. I can recommend what I think is the very best Django tutorial EVER, bar none ( http://www.marinamele.com/taskbuster-django-tutorial) It does, however introduce yo

django dynamically updating dashboard

2016-03-28 Thread Becka R.
Hi, I suspect this calls for celery, which I've never used. Can someone point me in a direction of docs or a tutorial? App examples would be amazing. Thank you. Becka -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from th

advanced beginner / early intermediate Django users

2016-03-19 Thread Becka R.
Hi there, This is less about solving a specific coding issue in Django, and more asking for input from other people who have hit walls in Django. I hope this is within the scope of what this list is used for, and if it isn't I apologize. I've now written a couple of Django CRUD applications

Re: Development of web based image processing package

2016-03-10 Thread Mario R. Osorio
I know nothing about the subject, but I stumbled upon this article I think might be useful in your endeavor: Fundamentals of Image Processing - behind the scenes On Thursday, March 3, 2016 at 12:47:

Re: Python on the web

2016-03-09 Thread Mario R. Osorio
There you are: http://hlevkin.com/Shell_progr/hellopython.htm Please send the $20 to my paypal account... On Monday, March 7, 2016 at 10:51:53 AM UTC-5, Gregg Turner wrote: > > Hey, > > Need a simple python script put into a website. It uses the requests > module. > > $20? Any takers? > -- Yo

no migrations folder

2016-03-08 Thread Becka R.
s/LadynerdsNEW/ladynerds/ladynerds/urls.py:27: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got django.contrib.auth.views.login). Pass the callable instead. url(r'^login/', 'django.contrib.auth.views.login', name='foo&

I don't understand this error - Django 1.9

2016-03-04 Thread Becka R.
Hi, I'm building a pretty basic CRUD application for a community I'm part of. I'm now getting "ImportError: No module named [myappname]" when I run the server, and an operational error in the admin. I looked at the documentation, and followed the steps, but I'm not doing something correctl

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
> > y So this is effectively a feed aggregation engine. I would recommend > having a separate daemon running per media source, so that issues with one > media source do not affect the operations of another. > I never would have thought of this application as a feed aggregation engine, but I'

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
> > I suggest that you use Celery. > A very useful tip! > > If people are making HTTP requests of you, that is reason enough to choose > Django. > Well, let me put it this way; I felt in love with Python almost 7 years ago, but when I met Django, this love turned into an obsession you see; I

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
I understand HTTP requests are short lived, I just could not figure out how to handle the possible long responses, I' m rather new to python AND to web programming and when I start mixing things like WSGI my brain just burst. I know about celery, just never thought it would be my allied in this

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
Thanks to each and every one of you for the VERY HELPFUL recommendations you have given me (Avraham Serour, ke1g & James Schneider so far) I really got back more than I expected, but as I told a friend of mine; it was worth every minute of the almost 4 hours it took me to redact this question, n

Kind'a TL, but please DR - Need your thoughts

2016-01-31 Thread Mario R. Osorio
I need comments on an application I have been recently proposed. The way it is being envisioned at this moment is this: One python daemon will be listening for different communications media such as email, web and SMS (web also). IMHO, it is necessary to have a daemon per each media. This d

  1   2   3   4   >