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
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
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
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>
> 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
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
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
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
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
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
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
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
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
, 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
&
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
> 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
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 "
17 matches
Mail list logo