HELP - Writing your first Django app, part 1

61 views
Skip to first unread message

Nick Bansal

unread,
Oct 14, 2016, 12:23:00 PM10/14/16
to Django users
Hi, 

I'm struggling to figure out how to do the following command:

"To create a URLconf in the polls directory, create a file called urls.py. Your app directory should now look like:"

How do I create a file called urls.py in the app directory? am I missing something completely obvious?

Any help would be appreciated

Asad Jibran Ahmed

unread,
Oct 14, 2016, 12:41:43 PM10/14/16
to django...@googlegroups.com
Just create a new file in whatever text editor you're using (I suggest Sublime Text if you're looking for options) and save the file as urls.py inside the polls directory.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4ca2fd83-cf96-45d6-9fd1-5721de06247c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vineet Kothari

unread,
Oct 14, 2016, 1:18:20 PM10/14/16
to django...@googlegroups.com

Inside your app create a file name filename.py you can create any file so on .as you will proceed further you get the idea .


On Oct 14, 2016 10:11 PM, "Asad Jibran Ahmed" <surf...@gmail.com> wrote:
>
> Just create a new file in whatever text editor you're using (I suggest Sublime Text if you're looking for options) and save the file as urls.py inside the polls directory.
>
> Asad Jibran Ahmed <surf...@gmail.com>
> http://blog.asadjb.com
>
> On Fri, Oct 14, 2016 at 8:00 PM, 'Nick Bansal' via Django users <django...@googlegroups.com> wrote:
>>
>> Hi, 
>>
>> I'm struggling to figure out how to do the following command:
>>
>> "To create a URLconf in the polls directory, create a file called urls.py. Your app directory should now look like:"
>>
>> How do I create a file called urls.py in the app directory? am I missing something completely obvious?
>>
>> Any help would be appreciated
>>
>> --
>> 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...@googlegroups.com.


>> To post to this group, send email to django...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4ca2fd83-cf96-45d6-9fd1-5721de06247c%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>

> --
> 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...@googlegroups.com.


> To post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.

> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BYYaWf%3DCLDViVZMHH_YEWH89jZ%3DyvnWpYQhp07AkXdHr5ChSA%40mail.gmail.com.

Nick Bansal

unread,
Oct 14, 2016, 1:55:10 PM10/14/16
to Django users
I tried to create a new file (im using sublime text) but it just gave me a new tab...

How do I create a new file in an app?


On Friday, 14 October 2016 17:41:43 UTC+1, Asad Jibran Ahmed wrote:
Just create a new file in whatever text editor you're using (I suggest Sublime Text if you're looking for options) and save the file as urls.py inside the polls directory.
On Fri, Oct 14, 2016 at 8:00 PM, 'Nick Bansal' via Django users <django...@googlegroups.com> wrote:
Hi, 

I'm struggling to figure out how to do the following command:

"To create a URLconf in the polls directory, create a file called urls.py. Your app directory should now look like:"

How do I create a file called urls.py in the app directory? am I missing something completely obvious?

Any help would be appreciated

--
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...@googlegroups.com.

Asad Jibran Ahmed

unread,
Oct 14, 2016, 5:45:05 PM10/14/16
to django...@googlegroups.com
Just save the file inside the poll folder. That creates the file.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Armando Licurgo

unread,
Oct 15, 2016, 11:10:23 AM10/15/16
to django...@googlegroups.com
criar arquivo vazio em unixlike use

touch nome_do_arquivo


Armando Licurgo
Software Developer

Nick Bansal

unread,
Oct 16, 2016, 3:36:02 AM10/16/16
to Django users
Cheers! got it!
Reply all
Reply to author
Forward
0 new messages