Try using virtual environment
On Fri, 21 Aug 2020, 6:59 pm sapna Choudhary, wrote:
> run command line django-admin ,you will see list of commands to run
>
> On Thu, Aug 20, 2020 at 6:47 PM company <2071...@hansung.ac.kr> wrote:
>
>> Hi, Django users.
>> I started to learn programming this year
run command line django-admin ,you will see list of commands to run
On Thu, Aug 20, 2020 at 6:47 PM company <2071...@hansung.ac.kr> wrote:
> Hi, Django users.
> I started to learn programming this year and joined to make new homepage
> for my programming club. So I want to know how to solve this
You are to call djando-admin as a module in python
by running "python -m django-admin startproject mysite"
On Thursday, August 20, 2020, company <2071...@hansung.ac.kr> wrote:
> Hi, Django users.
> I started to learn programming this year and joined to make new homepage
> for my programming club
that's exactly what i tried to do but it doesn't work
בתאריך יום ראשון, 18 באוגוסט 2019 בשעה 00:38:55 UTC+3, מאת Muhammad Nadeem:
>
> FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE:
> django-admin startproject mysite
> WHERE "mysite" is the name of your project. you can
Hi,
Kindly do whatever some told to add in admin.py file above. Thats correct.
After that u can see in admin panel
..
And for heroku what error you are getting plz share screenshot.
I can help you.
On Mon, 19 Aug, 2019, 2:36 AM Gil Obradors, wrote:
> 1.-Plese detail more : "But it not run" ?
1.-Plese detail more : "But it not run" ? Any error? Admin screen withous
the model?
You can try doing with the same with decorator and class:
from django.contrib import admin
@admin.register(Pacientes)
class PacientesAdmin(admin.ModelAdmin)
pass
Share errors, screen, behaveour...
2.- I
Hi Daniel:
I have build a little app in Django, but i have two problems:
1) I can not see the tables in ADMIN, but nevertheless y put in admin.py:
from .models import Pacientes
admin.site.register(Pacientes)
But it not run.
2) I can not upload my project to HEROKU, I've follow all the steps for t
I recommend this:
https://www.udemy.com/the-ultimate-beginners-guide-to-django-django-2-python-web-dev-website/
Django 2.2 & Python | The Ulitmate Web Development Bootcamp.
Good lectures and easy to grasp as you will also get through a python
refresher before you get right into Django.
On Sun
Type it all in one line.like this "*django-admin startproject mysite*"
Your screen shot shows you trying to do things separately.
On Saturday, August 17, 2019 at 10:33:43 PM UTC+2, Naty Mina wrote:
>
> hi, i'm new in django and trying to create my first project
> i followed the documentation
>
> Hi
>
I would like to start learning Django and can anyone suggest tutorial is
best for beginners.
--
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-user
You've installed your django correctly. I can see the version in your
snapshot.
Also I think you're trying to call django-admin from a python shell. Just
write the command 'django-admin startproject mysite' on the
terminal/command prompt.
This should do it.
On Sun, Aug 18, 2019 at 4:08 AM Danie
Please check to see it you got install Django properly with the version of
Python you are using.
On Sat, Aug 17, 2019, 4:38 PM Muhammad Nadeem
wrote:
> FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE:
> django-admin startproject mysite
> WHERE "mysite" is the name of your project. you c
FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE:
django-admin startproject mysite
WHERE "mysite" is the name of your project. you can change this name as you
desired.
if further u have any error fell free ping me
On Sun, Aug 18, 2019 at 1:32 AM Naty Mina wrote:
> hi, i'm new in djang
hi, i'm new in django and trying to create my first project
i followed the documentation and when i try to execute the django-admin
startproject mysite i get error that 'no django settings specified' and to
try 'django-admin.py help' instead for usage.
the problem is when i try to do so, i get a
Solved. You need to add "u" to the unicode representation of your model's
record. As in:
def __unicode__(self):
return u'%s' % self.fieldname
This "error" does not show up in the normal admin page for the model, only
when its accessed via the pop-up route.
On Tuesday, 19 November
Hi
I am using Django 1.5.5. This error happens while running the dev server.
If I click on the "+" button so I can use the pop-up form to add a new
entry to a drop-down list (i.e. FK to another model), I get the following
error trace when trying to save that form.
File
"/home/derek/.virtualenvs/
I went the hard way and changed all the null values untill I found out
which one caused a problem
Thanks
2013/4/24 Shawn Milochik
> Ah, I missed that point. You could temporarily create an __init__ override
> in your model and put the code there.
>
> --
> You received this message because you a
Ah, I missed that point. You could temporarily create an __init__ override
in your model and put the code there.
--
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
it's the admin view you're telling me to modify
I'm sorry I'm faily new to django and I'm afraid I will do something wrong!
2013/4/24 Shawn Milochik
> See what I said above about iterating through the fields in your view. Use
> logging, print statements, or dump output to a file.
>
>
> On Wed,
See what I said above about iterating through the fields in your view. Use
logging, print statements, or dump output to a file.
On Wed, Apr 24, 2013 at 10:39 AM, Wissal Khadrouf WBC <
wissal.khadr...@wbc.ma> wrote:
> That's what I was thinking,it's from the data
> But I dont know wich field and
That's what I was thinking,it's from the data
But I dont know wich field and how to find out
2013/4/24 Shawn Milochik
> Try iterating through your output in the view and look at field,
> field.content, and if field.help_text. Somewhere you have a null value
> which is None in Python.
>
> Since
Try iterating through your output in the view and look at field,
field.content, and if field.help_text. Somewhere you have a null value
which is None in Python.
Since the traceback you posted (if it's complete) is all from Django's code
and not yours, then the error must be in your data.
--
You
Hello everyone,
I have this error since a long time but can't figure it out :
*Caught TypeError while rendering: coercing to Unicode: need string or
buffer, NoneType found*
It happens in admin when I try to add or modify on one of my models
(display works fine)
This is the model:
class
Excellent that it was reported, but bad that it's not considered a
'bug' -- Any suggestions on how to use date_hierarchy (and probably
others) with my field?
On Aug 10, 8:04 am, Alex Gaynor wrote:
> On Mon, Aug 10, 2009 at 8:45 AM, BenW wrote:
>
> > Hello,
>
> > I'm working with a legacy databas
Alex Gaynor wrote:
> On Mon, Aug 10, 2009 at 8:45 AM, BenW wrote:
>
>> Hello,
>>
>> I'm working with a legacy database that stores datetimes as unsigned
>> ints. Rather than do the conversion with properties on the model I've
>> written a custom Field 'UnixDateTimeField':
>>
>> class UnixDateT
On Mon, Aug 10, 2009 at 8:45 AM, BenW wrote:
>
> Hello,
>
> I'm working with a legacy database that stores datetimes as unsigned
> ints. Rather than do the conversion with properties on the model I've
> written a custom Field 'UnixDateTimeField':
>
> class UnixDateTimeField(models.DateTimeField):
Hello,
I'm working with a legacy database that stores datetimes as unsigned
ints. Rather than do the conversion with properties on the model I've
written a custom Field 'UnixDateTimeField':
class UnixDateTimeField(models.DateTimeField):
__metaclass__ = models.SubfieldBase
def get_inte
I know this may sound dumb but are you actually on the correct drive
to be issuing that command? Also are you using the svn or .96. Not
that it matters I am just curious.
On Apr 30, 9:57 am, curt <[EMAIL PROTECTED]> wrote:
> I've completed the install of python and django and I'm trying to run
I've completed the install of python and django and I'm trying to run
django-admin to start the first project in the tutorial. When I enter
the command:
django-admin.py startproject mysite
I get the following response:
Type 'django-admin.py help' for usage.
What am I doing wrong?
Thanks...
-
I think I solved this problem after I upgrade my python version from
2.3 to 2.5.
before I used python2.3 on Dreamhost, /admin/auth/user/1/ raise a
http404 exception
thanks!
On Apr 6, 7:31 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Sat, Apr 5, 2008 at 1:43 AM, Sky <[EMAIL PROTECTED]> wrote
On Sat, Apr 5, 2008 at 1:43 AM, Sky <[EMAIL PROTECTED]> wrote:
>
> my site is hosted by Dreamhost, Dreamhost can use DATABASE_ENGINE =
> 'mysql_old' for djngo, my django admin panel broken at /admin/auth/
> user/1/ , but /admin/auth/user/1/password/ is fine
> and on my local compute I used DATABA
my site is hosted by Dreamhost, Dreamhost can use DATABASE_ENGINE =
'mysql_old' for djngo, my django admin panel broken at /admin/auth/
user/1/ , but /admin/auth/user/1/password/ is fine
and on my local compute I used DATABASE_ENGINE = 'mysql' are works
fine, why??
My django version is the newest
FYI: The 'max_digits' specifies the field size,
the 'decimal_places' specifies where to place the decimal point within
the field.
;o) Have a nice day, and Happy Programming!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
That was it. Cheers!
On Feb 24, 3:10 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> > On Sat, 2008-02-23 at 06:42 -0800, PB wrote:
> > > When trying to add 46.229253 to a floatfield
> > > I get displayed error:
>
> > > Please enter a valid decimal number with a whole part of at most -19
> > > di
> On Sat, 2008-02-23 at 06:42 -0800, PB wrote:
> > When trying to add 46.229253 to a floatfield
> > I get displayed error:
>
> > Please enter a valid decimal number with a whole part of at most -19
> > digits
>
> > Any ideas?
On Sun, Feb 24, 2008 at 9:04 AM, PB <[EMAIL PROTECTED]> wrote:
>
> Hi,
Hi,
I'm using Django 0.96. The model has the lines:
latitude = models.FloatField(null=True, max_digits=12,
decimal_places=31, blank=True)
longitude = models.FloatField(null=True, max_digits=12,
decimal_places=31, blank=True)
Then when trying to use the admin tool it throws the above error.
On Sat, 2008-02-23 at 06:42 -0800, PB wrote:
> When trying to add 46.229253 to a floatfield
> I get displayed error:
>
> Please enter a valid decimal number with a whole part of at most -19
> digits
>
> Any ideas?
What happens when you do enter a float with negative nineteen (or fewer)
digits?
When trying to add 46.229253 to a floatfield
I get displayed error:
Please enter a valid decimal number with a whole part of at most -19
digits
Any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django user
38 matches
Mail list logo