New to Django (stuck at the end of the tutorial)

2016-04-26 Thread Cronos Cto



Hello Django Lovers.

So I started on Django as project of mine. Seems like a great first 
framework to start on. At the moment I am stuck at this:



This was after what I encountered at the end of the Django oficial post app 
tutorial.

I tried several ways to solve it. The problem seems to lay in the url.py 
file, but I can not seem to solve it.



Thank you to anyone that can help me solve it.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/ebf5ef21-550b-4f59-89bb-261584a7124c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: New to Django (stuck at the end of the tutorial)

2016-04-26 Thread Cronos Cto


terça-feira, 26 de Abril de 2016 às 08:33:09 UTC+1, Cronos Cto escreveu:
>
>
> Hello Django Lovers.
>
> So I started on Django as project of mine. Seems like a great first 
> framework to start on. At the moment I am stuck at this:
>
>
>
> <https://lh3.googleusercontent.com/-lP0oAE5EZAA/Vx7HXX0Me4I/AH0/1s25myal0jYxvTkpRswWG5W9xzZ01uorwCLcB/s1600/problema1.png>
> This was after what I encountered at the end of the Django oficial post 
> app tutorial.
>
> I tried several ways to solve it. The problem seems to lay in the url.py 
> file, but I can not seem to solve it.
>
>
> <https://lh3.googleusercontent.com/-rUiOqjxXf_8/Vx7I3msoaQI/AIA/jA6oLTlafUsIjnq1fCjUTwrs_omppIHIQCLcB/s1600/file1.png>
>
> Thank you to anyone that can help me solve it.
>


I have tried the include, and does not seem to solve problem, just creates 
more errors as knbk said. 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/36d60580-d4b9-4e8c-811c-1d64041afadf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: New to Django (stuck at the end of the tutorial)

2016-04-26 Thread Cronos Cto
I have tried the include solution. Just creates more erros as knbk said.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/cf19247e-c626-41b7-9be0-98ae7a4f012a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: New to Django (stuck at the end of the tutorial)

2016-04-26 Thread Cronos Cto



´


Doesnt seem to fix it still. I have no clue how to go further, totally new 
to django.



-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/64ae0a3f-7138-4a4b-8fbb-817192f55207%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: New to Django (stuck at the end of the tutorial)

2016-04-26 Thread Cronos Cto
Could you give me an example or so Vijay Khemali?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/b39236d6-b018-48cd-b94a-1857ea1ec32a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: New to Django (stuck at the end of the tutorial)

2016-04-28 Thread Cronos Cto
Nikhil Beniwal , I tried I get an error that says __init__() takes 1 
positional argument but 2 were given.

I don't understand, I must be doing something wrong since this was done 
with the help of the Django official tutorial.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/02944027-22cf-41da-bf07-00b797dea84b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: New to Django (stuck at the end of the tutorial)

2016-05-01 Thread Cronos Cto
Ty Aeron I will check it out.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/de5feb9e-8b7c-442e-abd0-a93b3d6ea611%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django_bootstrap_calendar and admin backend

2016-07-07 Thread Cronos Cto


I am doing a project where I gotta explore as much of the Django framework 
as possible.

One of the things I want to do is to implement the app 
django_bootstrap_calendar, so far I was able to implement the the calendar 
to a button that is a linked to the calendars address.

I am having a hard time figuring out how to implement the backend of the 
calendar, like creating\editing events and such...

I have googled alot, and was not able to find anything that could help in 
that regard.

If anyone could guide me through this it would be awesome.



-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/317e0268-39b4-49c5-936b-c5f69aecec22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django_bootstrap_calendar and admin backend

2016-07-12 Thread Cronos Cto
Ok so I was able to fix one of my problems, consisted in framework not 
recognizing the database, had to delete it and migrate everything again. 
Right now I can add events in my backend, but when I check my website the 
day where I have set the  event lights up, but does not show title, hour or 
anything... 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/7ced5f5a-ab52-4028-a234-5bed6635426c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django_bootstrap_calendar and admin backend

2016-07-12 Thread Cronos Cto
Ok so I was able to fix one of my problems, consisted in framework not 
recognizing the database, had to delete it and migrate everything again. 
Right now I can add events in my backend, but when I check my website the 
day where I have set the  event lights up, but does not show title, hour or 
anything... 


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/09215dec-54a1-48ea-8b47-bb71a40ce453%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django_bootstrap_calendar and admin backend

2016-07-13 Thread Cronos Cto
Hello Ludovic, what part of the code would you like me to post ? 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/6dfb8f1c-70be-433f-b2fc-e79a3c1507f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django_bootstrap_calendar and admin backend

2016-07-14 Thread Cronos Cto



Yes https://github.com/sandlbn/django-bootstrap-calendar/ 

 this 
is the one I am using.
This are the parts I changed.




\mysite\mysite\settings.py

INSTALLED_APPS = [
'django_bootstrap_calendar',
'blog',
'staff',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
-
\mysite\mysite\urls.py

from django.conf.urls import url, include
from django.contrib import admin

urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('staff.urls')),
url(r'^blog/', include('blog.urls')),
url(r'^calendar/',include('django_bootstrap_calendar.urls')),
]
-

\mysite\django_bootstrap_calendar\admin.py

from django.contrib import admin
from django_bootstrap_calendar.models import CalendarEvent

class CalendarEventAdmin(admin.ModelAdmin):
list_display = ["title", "url", "css_class", "start", "end"]
list_filler = ["title"]

admin.site.register(CalendarEvent,CalendarEventAdmin)

-
\mysite\staff\templates\staff\header.html

**
**

**
**

**
* Centro de Dia de Messines*
* *
* {% load staticfiles %}*
* *
* *
* *
* html,*
* body {*
*  height:100%*
* }*
* *
**

**
* *
* *
*  *
*  *
*  *
* *
*  *
*  *
*  *
*  *
*  *
*  Uma Familia maior*
*  *
*  *
* *

* *
*  *
*  *

*  *
*   *
* *
* *
*  *
* Ínicio*
* Calendário*
* Blog*
* Contatos*
*  *
*  *
*   *
*  *
 
* *
* *
*   {% block content %}*
*   {% endblock %} *
* *
*  *
*  *
* *
* *
* *
* Contact | LinkedIn | Twitter | Google+*
* *
*  *
**

**




This about all the stuff I changed, I realize that some code that I still 
need to change is not changed like Load templatetags, In your template 
file, base.html file css section and base.html file javascript section. The 
problem is I do not understand very well where to do this part of the 
instalation.

If needed I can send you the files so you can replicate easier.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/9b930883-674c-4b53-9344-d225a4869a22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django_bootstrap_calendar and admin backend

2016-07-19 Thread Cronos Cto
This happened. Sorry for taking so long, had exams to take care of.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/32bb5e5c-6a72-446b-a8b5-25c3f93badf7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django_bootstrap_calendar and admin backend

2016-07-20 Thread Cronos Cto
That explains alot of the issues I am having. Since it is a compatibility 
issue, I am guessing there is no way to make it work right?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/9fcc888d-d258-4fc9-8fe9-52b1673e761c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.