Ok so the images I attached to this comment are the view of the file path
in my file explorer, which isn't consistent with the results of the tree
command in "mysite". The files are there but I of course I don't see the
polls app folders anywhere.
I entered the command you suggested and receive
That looks really weird.
Try running this command in a new folder exactly as shown.
django-admin startproject polls_project .
Remember to include a space and period after polls_ project.
It should create a directory structure like this in your new folder.
.
├── manage.py
├── polls_project
│
Ok, attached a pic of the mysite folder and the other items inside. Polls 2
and 3 are my attempt at making another polls app. Feels like I'm missing
something really simple here.
On Sunday, June 30, 2019 at 11:06:54 PM UTC-4, Joe Reitman wrote:
>
> What does your project directory look like?
>
>
What does your project directory look like?
On Sunday, June 30, 2019 at 8:29:02 PM UTC-5, Scott Winter wrote:
>
> Sorry, you'll have to be clearer than that. Not sure how to do that nor
> how it relates to the issue
>
> On Friday, June 28, 2019 at 12:28:33 AM UTC-4, karthikvignesh28 wrote:
>>
>
Sorry, you'll have to be clearer than that. Not sure how to do that nor how
it relates to the issue
On Friday, June 28, 2019 at 12:28:33 AM UTC-4, karthikvignesh28 wrote:
>
> Create virtual environment
>
> On Fri, Jun 28, 2019, 6:14 AM ScottW >
> wrote:
>
>> The server ran a few weeks ago before
Create virtual environment
On Fri, Jun 28, 2019, 6:14 AM ScottW wrote:
> The server ran a few weeks ago before I ran into this issue. I used the
> run server command just now and now its not working. Interesting
>
> On Thursday, June 27, 2019 at 3:09:29 PM UTC-4, karthikvignesh28 wrote:
>>
>>
>>
The server ran a few weeks ago before I ran into this issue. I used the run
server command just now and now its not working. Interesting
On Thursday, June 27, 2019 at 3:09:29 PM UTC-4, karthikvignesh28 wrote:
>
>
>
> On Thursday, June 27, 2019 at 8:04:39 AM UTC+5:30, ScottW wrote:
>>
>> Hi,
>>
>
Yep, followed the instructions to a tee on the Django site
On Thursday, June 27, 2019 at 9:28:53 AM UTC-4, Joe Reitman wrote:
>
> Did you create a project first with the 'startproject' command?
>
> On Wednesday, June 26, 2019 at 9:34:39 PM UTC-5, ScottW wrote:
>>
>> Hi,
>>
>> I'm attempting to ge
Where exactly do I find installed apps? The settings python file doesn't
open.
On Thursday, June 27, 2019 at 2:32:51 AM UTC-4, ojakol emma wrote:
>
> first go to installed apps in settings then you install that app "POLLS"
>
> On Thu, Jun 27, 2019 at 5:33 AM ScottW >
> wrote:
>
>> Hi,
>>
>> I'
On Thursday, June 27, 2019 at 8:04:39 AM UTC+5:30, ScottW wrote:
>
> Hi,
>
> I'm attempting to get started with Django and very first part of the polls
> app. When I type "python manage.py startapp polls" into the Windows
> Powershell I don't see a folder for it in my file explorer under "mys
Did you create a project first with the 'startproject' command?
On Wednesday, June 26, 2019 at 9:34:39 PM UTC-5, ScottW wrote:
>
> Hi,
>
> I'm attempting to get started with Django and very first part of the polls
> app. When I type "python manage.py startapp polls" into the Windows
> Powershe
hv you got it
On Thu, Jun 27, 2019 at 9:31 AM ojakol emma wrote:
> first go to installed apps in settings then you install that app "POLLS"
>
> On Thu, Jun 27, 2019 at 5:33 AM ScottW wrote:
>
>> Hi,
>>
>> I'm attempting to get started with Django and very first part of the
>> polls app. When I
first go to installed apps in settings then you install that app "POLLS"
On Thu, Jun 27, 2019 at 5:33 AM ScottW wrote:
> Hi,
>
> I'm attempting to get started with Django and very first part of the polls
> app. When I type "python manage.py startapp polls" into the Windows
> Powershell I don't
Hi,
I'm attempting to get started with Django and very first part of the polls
app. When I type "python manage.py startapp polls" into the Windows
Powershell I don't see a folder for it in my file explorer under "mysite".
Even stranger is that when I type 'tree' for this folder it shows that
Thanks Julien!
I'm new to Python, so the indentation is throwing me a bit, but that
sorted out the problem.
Thanks again!
On Jun 27, 5:16 pm, Julien <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In the example you give I see some identeation problems. It should
> rather be:
>
> class Poll(models.Model)
Thanks Julien!
I'm new to python, so the indentation is throwing me a little, but
that fixed the issue.
Thanks again!
On Jun 27, 5:16 pm, Julien <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In the example you give I see some identeation problems. It should
> rather be:
>
> class Poll(models.Model):
>
Hi,
In the example you give I see some identeation problems. It should
rather be:
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __unicode__(self):
return self.question
def was_published_today(se
Hi,
I've been going over this, but for some reason the Polls app is not
showing up in the admin after adding 'class Admin: pass' to the poll
model. I've searched through this user group, and have tried all the
things suggested, but am still not having much luck. My models.py page
looks like this:
18 matches
Mail list logo