Re: custom command

2018-07-20 Thread Mikhailo Keda
check this example - https://bitbucket.org/voron-raven/maps/src/master/core/management/commands/import.py пʼятниця, 20 липня 2018 р. 14:37:42 UTC+3 користувач dp Audiovisual написав: > > Hello, I need to create a "custom command" that uploads all the Json files > of a folder

Re: custom command

2018-07-20 Thread Julio Biason
d the values in PostgreSQL, you'll need to have your model defined (https://docs.djangoproject.com/en/2.0/topics/db/models/) and, with that, you just create records and `.save()` them. On Fri, Jul 20, 2018 at 1:24 AM, dp Audiovisual wrote: > Hello, I need to create a "custom comman

custom command

2018-07-20 Thread dp Audiovisual
Hello, I need to create a "custom command" that uploads all the Json files of a folder within the project to the postgres database. Help, I'm learning. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Using the Eclipse mysite>django>custom command(manage.py$(custom_command)) function

2016-06-26 Thread Gergely Polonkai
The >>> tutorial has me run: >>> python manage.py createsuperuser >>> I want to run this within Eclipse and not the system command line. Right >>> clicking on the project title and following the sub menus I get to the: >>> mysite>

Re: Using the Eclipse mysite>django>custom command(manage.py$(custom_command)) function

2016-06-26 Thread Ilya Boka
> tutorial has me run: >>> python manage.py createsuperuser >>> I want to run this within Eclipse and not the system command line. Right >>> clicking on the project title and following the sub menus I get to the: >>> mysite>django>custom

Re: Using the Eclipse mysite>django>custom command(manage.py$(custom_command)) function

2016-06-25 Thread Gary Roach
licking on the project title and following the sub menus I get to the: mysite>django>custom command(manage.py$(custom_command)) function. I can't seem to figure out how to use this. It is the only thing I could find that looks like it is meant to replace the system command line. I

Re: Using the Eclipse mysite>django>custom command(manage.py$(custom_command)) function

2016-06-25 Thread Ilya Boka
cation. At present I am running through the djangoproject tutorial.The > tutorial has me run: > python manage.py createsuperuser > I want to run this within Eclipse and not the system command line. Right > clicking on the project title and following the sub menus I get to

Using the Eclipse mysite>django>custom command(manage.py$(custom_command)) function

2016-06-25 Thread Gary Roach
system command line. Right clicking on the project title and following the sub menus I get to the: mysite>django>custom command(manage.py$(custom_command)) function. I can't seem to figure out how to use this. It is the only thing I could find that looks like it is meant to replace

Re: Problen with Custom command and Bash Script

2013-02-06 Thread Jesús Lucas Flores
Hi guys, Thanks everybody for all the answers, really helped me. I *SOLVED the problem.* The problem was I was calling custom enviroment variables into my settings.py . So that enviroments variables exists on bash (thanks to .bashrc) but not in cron ( thanks Branko Majic ) so manage.py failed

Re: Problen with Custom command and Bash Script

2013-02-06 Thread Mike Dewhirst
On 7/02/2013 12:39am, Jesús Lucas Flores wrote: Hey guys, I need a little bit help with a custom manage.py command called *test* There is already a manage.py subcommand called test. Might be an idea to rename your custom command and try again. Just a thought ... I am using it in a

Re: Problen with Custom command and Bash Script

2013-02-06 Thread Ali
I think this has to do with not mentioning the proper settings file. manage.py goes to the settings and checks all the installed apps for any custom commands, but if you haven't set proper settings file then it would not recognize those commands. You can either set the environment variable to D

Re: Problen with Custom command and Bash Script

2013-02-06 Thread Branko Majic
On Wed, 6 Feb 2013 05:39:55 -0800 (PST) Jesús Lucas Flores wrote: > Hey guys, > > I need a little bit help with a custom manage.py command called *test* > > > I am using it in a virtualenv on a shell script *script.sh*, > > The script.sh works well out of the cron and Wihiout activate the

Problen with Custom command and Bash Script

2013-02-06 Thread Jesús Lucas Flores
Hey guys, I need a little bit help with a custom manage.py command called *test* I am using it in a virtualenv on a shell script *script.sh*, The script.sh works well out of the cron and Wihiout activate the virtualenv also works well. but if the script is on the crontab give a *Unknown com

Re: Custom Command as cron

2009-09-27 Thread pkenjora
, 10:05 am, Matt McCants wrote: > Greetings all, > > I'm having an issue running a custom command as a cron. Most resources > I've read have said that you can run your command from cron by simply > using the following syntax: > > python manage.py custom_command_name &

Re: Custom Command as cron

2009-09-26 Thread Fangzx
rly new to Django and > Python. I understand why I was wrong. Thanks for reading anyway! > > Matt > > > > > > > > On Thu, 2009-09-24 at 13:05 -0400, Matt McCants wrote: > > Greetings all, > > > I'm having an issue running a custom comma

Re: Custom Command as cron

2009-09-24 Thread Matt McCants
> I'm having an issue running a custom command as a cron. Most resources > I've read have said that you can run your command from cron by simply > using the following syntax: > > python manage.py custom_command_name > > Frustratingly, that does not work for me. It results

Custom Command as cron

2009-09-24 Thread Matt McCants
Greetings all, I'm having an issue running a custom command as a cron. Most resources I've read have said that you can run your command from cron by simply using the following syntax: python manage.py custom_command_name Frustratingly, that does not work for me. It results in "